From 759225007c9c114a340e8cceaa5d46bc310a95de Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Wed, 13 May 2026 10:25:41 +0200 Subject: [PATCH] Phase 80d: remove remaining if(dpy) conditionals from screen.c Replace dpy-based conditional in wScreenInit with root_win check. Remaining dpy references in policy files are all in X11 mechanism code (rendering functions, event handlers, XWayland setup) that is only reached through the X11 backend path. --- src/screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;