diff --git a/src/screen.c b/src/screen.c index 7fa3cf4..8121e62 100644 --- a/src/screen.c +++ b/src/screen.c @@ -162,7 +162,7 @@ WScreen *wScreenInit(int screen_number) * and allocate workspace 0 directly. When XWayland is available (dpy is * set, Path 1), fall through to the full X11 init so WINGs, RContext, * GCs, and menus work correctly on the XWayland display. */ - if (wm_backend->is_wayland && !dpy) { + if (wm_backend->is_wayland && scr->root_win == 0) { scr->w_depth = 24; scr->rcontext = NULL;