From: Michael Stapelberg Date: Mon, 15 Mar 2010 21:17:00 +0000 (+0100) Subject: Bugfix: Correctly stack windows when new windows are opened while in fullscreen mode X-Git-Tag: 3.e~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ba512668e3a397f7398ed517f1820b7872365d56;p=i3%2Fi3 Bugfix: Correctly stack windows when new windows are opened while in fullscreen mode This fixes ticket #195. --- diff --git a/src/manage.c b/src/manage.c index da5ec175..6e39f51c 100644 --- a/src/manage.c +++ b/src/manage.c @@ -353,9 +353,15 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child, if (new->workspace->fullscreen_client != NULL) { LOG("Setting below fullscreen window\n"); - /* If we are in fullscreen, we should lower the window to not be annoying */ - uint32_t values[] = { XCB_STACK_MODE_BELOW }; - xcb_configure_window(conn, new->frame, XCB_CONFIG_WINDOW_STACK_MODE, values); + /* If we are in fullscreen, we should place the window below + * the fullscreen window to not be annoying */ + uint32_t values[] = { + new->workspace->fullscreen_client->frame, + XCB_STACK_MODE_BELOW + }; + xcb_configure_window(conn, new->frame, + XCB_CONFIG_WINDOW_SIBLING | + XCB_CONFIG_WINDOW_STACK_MODE, values); } /* Insert into the currently active container, if it’s not a dock window */