aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index 91fa7e3d..fc294674 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -889,6 +889,12 @@ static void xwm_handle_map_request(struct wlr_xwm *xwm,
xsurface_set_wm_state(xsurface, ICCCM_NORMAL_STATE);
xsurface_set_net_wm_state(xsurface);
+
+ uint32_t values[1];
+ values[0] = XCB_STACK_MODE_BELOW;
+ xcb_configure_window(xwm->xcb_conn, ev->window,
+ XCB_CONFIG_WINDOW_STACK_MODE, values);
+
xcb_map_window(xwm->xcb_conn, ev->window);
}