]> git.sur5r.net Git - i3/i3/commitdiff
Put the bars on top, when reconfiguring
authorAxel Wagner <mail@merovius.de>
Wed, 25 Aug 2010 21:36:25 +0000 (23:36 +0200)
committerAxel Wagner <mail@merovius.de>
Wed, 25 Aug 2010 21:36:25 +0000 (23:36 +0200)
i3bar/src/xcb.c

index a974ead9b65f76d320b3deb7775fd6dc0a3068c9..7f479b4e51b5ee9322c7c4293e466cb2d5b9093a 100644 (file)
@@ -88,7 +88,7 @@ void unhide_bars() {
     xcb_void_cookie_t   cookie;
     xcb_generic_error_t *err;
     uint32_t            mask;
-    uint32_t            values[4];
+    uint32_t            values[5];
 
     cont_child();
 
@@ -99,11 +99,13 @@ void unhide_bars() {
         mask = XCB_CONFIG_WINDOW_X |
                XCB_CONFIG_WINDOW_Y |
                XCB_CONFIG_WINDOW_WIDTH |
-               XCB_CONFIG_WINDOW_HEIGHT;
+               XCB_CONFIG_WINDOW_HEIGHT |
+               XCB_CONFIG_WINDOW_STACK_MODE;
         values[0] = walk->rect.x;
         values[1] = walk->rect.y + walk->rect.h - font_height - 6;
         values[2] = walk->rect.w;
         values[3] = font_height + 6;
+        values[4] = XCB_STACK_MODE_ABOVE;
         printf("Reconfiguring Window for output %s to %d,%d\n", walk->name, values[0], values[1]);
         cookie = xcb_configure_window_checked(xcb_connection,
                                               walk->bar,
@@ -469,7 +471,7 @@ void destroy_window(i3_output *output) {
  */
 void reconfig_windows() {
     uint32_t mask;
-    uint32_t values[4];
+    uint32_t values[5];
 
     xcb_void_cookie_t   cookie;
     xcb_generic_error_t *err;
@@ -552,11 +554,13 @@ void reconfig_windows() {
             mask = XCB_CONFIG_WINDOW_X |
                    XCB_CONFIG_WINDOW_Y |
                    XCB_CONFIG_WINDOW_WIDTH |
-                   XCB_CONFIG_WINDOW_HEIGHT;
+                   XCB_CONFIG_WINDOW_HEIGHT |
+                   XCB_CONFIG_WINDOW_STACK_MODE;
             values[0] = walk->rect.x;
             values[1] = walk->rect.y + walk->rect.h - font_height - 6;
             values[2] = walk->rect.w;
             values[3] = font_height + 6;
+            values[4] = XCB_STACK_MODE_ABOVE;
             printf("Reconfiguring Window for output %s to %d,%d\n", walk->name, values[0], values[1]);
             cookie = xcb_configure_window_checked(xcb_connection,
                                                   walk->bar,