2 * vim:ts=4:sw=4:expandtab
4 * i3bar - an xcb-based status- and ws-bar for i3
5 * © 2010-2011 Axel Wagner and contributors (see also: LICENSE)
7 * outputs.c: Maintaining the output-list
17 typedef struct i3_output i3_output;
19 SLIST_HEAD(outputs_head, i3_output);
20 struct outputs_head *outputs;
23 * Start parsing the received json-string
26 void parse_outputs_json(char* json);
29 * Initiate the output-list
35 * Returns the output with the given name
38 i3_output* get_output_by_name(char* name);
41 char* name; /* Name of the output */
42 bool active; /* If the output is active */
43 int ws; /* The number of the currently visible ws */
44 rect rect; /* The rect (relative to the root-win) */
46 xcb_window_t bar; /* The id of the bar of the output */
47 xcb_pixmap_t buffer; /* An extra pixmap for double-buffering */
48 xcb_gcontext_t bargc; /* The graphical context of the bar */
50 struct ws_head *workspaces; /* The workspaces on this output */
51 struct tc_head *trayclients; /* The tray clients on this output */
53 SLIST_ENTRY(i3_output) slist; /* Pointer for the SLIST-Macro */