From: Axel Wagner Date: Wed, 25 Aug 2010 21:36:25 +0000 (+0200) Subject: Put the bars on top, when reconfiguring X-Git-Tag: 4.0.1~7^2~72^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c2ad6167e99c3006f8c1148bca78ec76d8e599ec;p=i3%2Fi3 Put the bars on top, when reconfiguring --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index a974ead9..7f479b4e 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -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,