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.
This commit is contained in:
Levi Neely 2026-05-13 10:25:41 +02:00
parent dfac01a478
commit 759225007c
1 changed files with 1 additions and 1 deletions

View File

@ -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;