From: Michael Stapelberg Date: Sat, 28 Feb 2009 12:03:44 +0000 (+0100) Subject: Bugfix: Raise the stack win when its size changes X-Git-Tag: 3.a~133 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=61c089e9822a977488a513b055b3356bbf0d2e9e;p=i3%2Fi3 Bugfix: Raise the stack win when its size changes --- diff --git a/src/layout.c b/src/layout.c index a3935996..db086148 100644 --- a/src/layout.c +++ b/src/layout.c @@ -228,10 +228,14 @@ void render_container(xcb_connection_t *connection, Container *container) { /* Check if we need to reconfigure our stack title window */ if ((stack_win->width != (stack_win->width = container->width)) | - (stack_win->height != (stack_win->height = decoration_height * num_clients))) + (stack_win->height != (stack_win->height = decoration_height * num_clients))) { xcb_configure_window(connection, stack_win->window, XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT, &(stack_win->width)); + uint32_t values[] = { XCB_STACK_MODE_ABOVE }; + xcb_configure_window(connection, stack_win->window, XCB_CONFIG_WINDOW_STACK_MODE, values); + } + /* Reconfigure the currently focused client, if necessary. It is the only visible one */ client = container->currently_focused;