2 * vim:ts=4:sw=4:expandtab
4 * i3bar - an xcb-based status- and ws-bar for i3
5 * © 2010 Axel Wagner and contributors (see also: LICENSE)
7 * outputs.c: Maintaining the outputs list
16 typedef struct i3_output i3_output;
18 SLIST_HEAD(outputs_head, i3_output);
19 struct outputs_head* outputs;
22 * Start parsing the received JSON string
25 void parse_outputs_json(char* json);
28 * Initiate the outputs list
31 void init_outputs(void);
34 * Returns the output with the given name
37 i3_output* get_output_by_name(char* name);
40 char* name; /* Name of the output */
41 bool active; /* If the output is active */
42 bool primary; /* If it is the primary output */
43 bool visible; /* If the bar is visible on this output */
44 int ws; /* The number of the currently visible ws */
45 rect rect; /* The rect (relative to the root window) */
47 xcb_window_t bar; /* The id of the bar of the output */
48 xcb_pixmap_t buffer; /* An extra pixmap for double-buffering */
49 xcb_gcontext_t bargc; /* The graphical context of the bar */
51 struct ws_head* workspaces; /* The workspaces on this output */
52 struct tc_head* trayclients; /* The tray clients on this output */
54 SLIST_ENTRY(i3_output) slist; /* Pointer for the SLIST-Macro */