From ae245556e5a8d91461659429329b2ace5924454c Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Tue, 23 Jun 2020 16:33:05 +1000 Subject: [PATCH] xwayland: add server and basic window functionality --- dwl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dwl.c b/dwl.c index e5fa19a..dd89dcb 100644 --- a/dwl.c +++ b/dwl.c @@ -617,10 +617,7 @@ focusclient(Client *c, struct wlr_surface *surface, int lift) /* assert(VISIBLEON(c, c->mon)); ? */ /* Use top-level wlr_surface if nothing more specific given */ if (!surface) { - if (c->xdg_surface) - surface = c->xdg_surface->surface; - else - surface = c->xwayland_surface->surface; + surface = WLR_SURFACE(c); } /* Focus the correct monitor (must come after selclient!) */