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:
parent
dfac01a478
commit
759225007c
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue