Bugfix: Correctly stack windows when new windows are opened while in fullscreen mode

This fixes ticket #195.
This commit is contained in:
Michael Stapelberg 2010-03-15 22:17:00 +01:00
parent c58c7b9c63
commit f9e6f8ba4b
1 changed files with 9 additions and 3 deletions

View File

@ -400,9 +400,15 @@ void reparent_window(xcb_connection_t *conn, xcb_window_t child,
if (new->workspace->fullscreen_client != NULL) { if (new->workspace->fullscreen_client != NULL) {
DLOG("Setting below fullscreen window\n"); DLOG("Setting below fullscreen window\n");
/* If we are in fullscreen, we should lower the window to not be annoying */ /* If we are in fullscreen, we should place the window below
uint32_t values[] = { XCB_STACK_MODE_BELOW }; * the fullscreen window to not be annoying */
xcb_configure_window(conn, new->frame, XCB_CONFIG_WINDOW_STACK_MODE, values); 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 its not a dock window */ /* Insert into the currently active container, if its not a dock window */