Reconfigure to the correct coordinates

This commit is contained in:
Axel Wagner 2010-08-06 05:53:38 +02:00
parent 55047c1633
commit 660c77bdb8
1 changed files with 4 additions and 2 deletions

View File

@ -240,6 +240,7 @@ void reconfig_windows() {
i3_output *walk; i3_output *walk;
SLIST_FOREACH(walk, outputs, slist) { SLIST_FOREACH(walk, outputs, slist) {
if (!walk->active) { if (!walk->active) {
printf("Destroying window for output %s\n", walk->name);
destroy_window(walk); destroy_window(walk);
continue; continue;
} }
@ -288,9 +289,10 @@ void reconfig_windows() {
XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_WIDTH |
XCB_CONFIG_WINDOW_HEIGHT; XCB_CONFIG_WINDOW_HEIGHT;
values[0] = walk->rect.x; 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[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, xcb_configure_window(xcb_connection,
walk->bar, walk->bar,
mask, mask,