if (new->workspace->fullscreen_client != NULL) {
DLOG("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 */