]> git.sur5r.net Git - i3/i3/blobdiff - i3bar/include/xcb.h
Optionally change i3bar color on focused output, implements #2020
[i3/i3] / i3bar / include / xcb.h
index 835105e7fe7bde2a7315c9bb659cbce66a854697..0a9bd7e41d67e175d984481d326ff3e971fb0042 100644 (file)
 #define XEMBED_MAPPED (1 << 0)
 #define XEMBED_EMBEDDED_NOTIFY 0
 
+xcb_connection_t *xcb_connection;
+
+/* We define xcb_request_failed as a macro to include the relevant line number */
+#define xcb_request_failed(cookie, err_msg) _xcb_request_failed(cookie, err_msg, __LINE__)
+int _xcb_request_failed(xcb_void_cookie_t cookie, char *err_msg, int line);
+
 struct xcb_color_strings_t {
     char *bar_fg;
     char *bar_bg;
     char *sep_fg;
+    char *focus_bar_fg;
+    char *focus_bar_bg;
+    char *focus_sep_fg;
     char *active_ws_fg;
     char *active_ws_bg;
     char *active_ws_border;