]> git.sur5r.net Git - i3/i3/commitdiff
Fix i3bar when using multiple displays (Thanks brimstone)
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 19 Mar 2012 20:41:45 +0000 (21:41 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 19 Mar 2012 20:41:45 +0000 (21:41 +0100)
i3bar/src/xcb.c

index 29ffe1c41cfe96e0d9fa7a28ebee2f81f00ac00c..afcfaa397420791d68f21928a3f87646ccd4b0ea 100644 (file)
@@ -10,6 +10,7 @@
 #include <xcb/xcb.h>
 #include <xcb/xproto.h>
 #include <xcb/xcb_atom.h>
+#include <xcb/xcb_aux.h>
 
 #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