]> git.sur5r.net Git - i3/i3/commitdiff
Reconfigure to the correct coordinates
authorAxel Wagner <mail@merovius.de>
Fri, 6 Aug 2010 03:53:38 +0000 (05:53 +0200)
committerAxel Wagner <mail@merovius.de>
Fri, 6 Aug 2010 03:53:38 +0000 (05:53 +0200)
i3bar/src/xcb.c

index 1d359c0e606f68a3590d08ba186c5d146f074a20..75011dac39b7bd403b5becb84d5762ce22921e4f 100644 (file)
@@ -240,6 +240,7 @@ void reconfig_windows() {
     i3_output *walk;
     SLIST_FOREACH(walk, outputs, slist) {
         if (!walk->active) {
+            printf("Destroying window for output %s\n", walk->name);
             destroy_window(walk);
             continue;
         }
@@ -288,9 +289,10 @@ void reconfig_windows() {
                    XCB_CONFIG_WINDOW_WIDTH |
                    XCB_CONFIG_WINDOW_HEIGHT;
             values[0] = walk->rect.x;
-            values[1] = walk->rect.y;
+            values[1] = walk->rect.y + walk->rect.h - font_height - 6;
             values[2] = walk->rect.w;
-            values[3] = walk->rect.h;
+            values[3] = font_height + 6;
+            printf("Reconfiguring Window for output %s to %d,%d\n", walk->name, values[0], values[1]);
             xcb_configure_window(xcb_connection,
                                  walk->bar,
                                  mask,