From 660c77bdb8fc770aa21255e79036cc6656c33d31 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Fri, 6 Aug 2010 05:53:38 +0200 Subject: [PATCH] Reconfigure to the correct coordinates --- i3bar/src/xcb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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, -- 2.39.5