From: Axel Wagner Date: Fri, 6 Aug 2010 03:53:38 +0000 (+0200) Subject: Reconfigure to the correct coordinates X-Git-Tag: 4.0.1~7^2~88 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=660c77bdb8fc770aa21255e79036cc6656c33d31;p=i3%2Fi3 Reconfigure to the correct coordinates --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 1d359c0e..75011dac 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -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,