X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3bar%2Finclude%2Foutputs.h;h=e6605e1f73da2b7892e6be88b7360c31118f94e4;hb=884214f14fdbd0a4a368d2a36d5e50324fa1d52a;hp=e0beae89d6e2ef59bd6eff9bdbcae210881510aa;hpb=ee7582169944e601b54a24ee30b634a8824b6571;p=i3%2Fi3 diff --git a/i3bar/include/outputs.h b/i3bar/include/outputs.h index e0beae89..e6605e1f 100644 --- a/i3bar/include/outputs.h +++ b/i3bar/include/outputs.h @@ -2,9 +2,9 @@ * vim:ts=4:sw=4:expandtab * * i3bar - an xcb-based status- and ws-bar for i3 - * © 2010-2012 Axel Wagner and contributors (see also: LICENSE) + * © 2010 Axel Wagner and contributors (see also: LICENSE) * - * outputs.c: Maintaining the output-list + * outputs.c: Maintaining the outputs list * */ #pragma once @@ -19,13 +19,13 @@ SLIST_HEAD(outputs_head, i3_output); struct outputs_head* outputs; /* - * Start parsing the received json-string + * Start parsing the received JSON string * */ void parse_outputs_json(char* json); /* - * Initiate the output-list + * Initiate the outputs list * */ void init_outputs(void); @@ -40,8 +40,9 @@ struct i3_output { char* name; /* Name of the output */ bool active; /* If the output is active */ bool primary; /* If it is the primary output */ + bool visible; /* If the bar is visible on this output */ int ws; /* The number of the currently visible ws */ - rect rect; /* The rect (relative to the root-win) */ + rect rect; /* The rect (relative to the root window) */ xcb_window_t bar; /* The id of the bar of the output */ xcb_pixmap_t buffer; /* An extra pixmap for double-buffering */