]> git.sur5r.net Git - i3/i3/commitdiff
Define overrride-redirect
authorAxel Wagner <mail@merovius.de>
Wed, 25 Aug 2010 16:23:33 +0000 (18:23 +0200)
committerAxel Wagner <mail@merovius.de>
Wed, 25 Aug 2010 16:23:33 +0000 (18:23 +0200)
The bars should not be in dockmode, when hide-on-mod is active

i3bar/src/xcb.c

index 45ed79cc51c7428b96e2d147c811d92c6a9c1f73..9494b389bd3494980477e01b1a210d458951bdb9 100644 (file)
@@ -484,11 +484,13 @@ void reconfig_windows() {
             printf("Creating Window for output %s\n", walk->name);
 
             walk->bar = xcb_generate_id(xcb_connection);
-            mask = XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK;
+            mask = XCB_CW_BACK_PIXEL | XCB_CW_OVERRIDE_REDIRECT | XCB_CW_EVENT_MASK;
             /* Black background */
             values[0] = xcb_screens->black_pixel;
+            /* i3 is not supposed to manage our bar-windows */
+            values[1] = 1;
             /* The events we want to receive */
-            values[1] = XCB_EVENT_MASK_EXPOSURE |
+            values[2] = XCB_EVENT_MASK_EXPOSURE |
                         XCB_EVENT_MASK_BUTTON_PRESS;
             cookie = xcb_create_window_checked(xcb_connection,
                                                xcb_screens->root_depth,