From: Michael Stapelberg Date: Mon, 19 Mar 2012 20:41:45 +0000 (+0100) Subject: Fix i3bar when using multiple displays (Thanks brimstone) X-Git-Tag: 4.2~52^2^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8b4ad8c6bdc73d8950b9ac67316811377acbf7b3;p=i3%2Fi3 Fix i3bar when using multiple displays (Thanks brimstone) --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 29ffe1c4..afcfaa39 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -10,6 +10,7 @@ #include #include #include +#include #ifdef XCB_COMPAT #include "xcb_compat.h" @@ -784,7 +785,7 @@ char *init_xcb_early() { #define ATOM_DO(name) atom_cookies[name] = xcb_intern_atom(xcb_connection, 0, strlen(#name), #name); #include "xcb_atoms.def" - xcb_screen = xcb_setup_roots_iterator(xcb_get_setup(xcb_connection)).data; + xcb_screen = xcb_aux_get_screen(xcb_connection, screen); xcb_root = xcb_screen->root; /* We draw the statusline to a seperate pixmap, because it looks the same on all bars and