4 #include <xcb/xproto.h>
8 typedef struct i3_ws i3_ws;
10 TAILQ_HEAD(ws_head, i3_ws);
13 * Start parsing the received json-string
16 void parse_workspaces_json();
19 * free() all workspace data-structures
22 void free_workspaces();
25 int num; /* The internal number of the ws */
26 char *name; /* The name (in utf8) of the ws */
27 xcb_char2b_t *ucs2_name; /* The name (in ucs2) of the ws */
28 int name_glyphs; /* The length (in glyphs) of the name */
29 int name_width; /* The rendered width of the name */
30 bool visible; /* If the ws is currently visible on an output */
31 bool focused; /* If the ws is currently focused */
32 bool urgent; /* If the urgent-hint of the ws is set */
33 rect rect; /* The rect of the ws (not used (yet)) */
34 struct i3_output *output; /* The current output of the ws */
36 TAILQ_ENTRY(i3_ws) tailq; /* Pointer for the TAILQ-Macro */