From b3eb7b3c89ca3db25615f59cb1466e7c06e62108 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Wed, 24 Jun 2020 16:15:16 +1000 Subject: [PATCH] xwayland: add server and basic window functionality --- dwl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dwl.c b/dwl.c index dd89dcb..7e25953 100644 --- a/dwl.c +++ b/dwl.c @@ -616,9 +616,8 @@ focusclient(Client *c, struct wlr_surface *surface, int lift) if (c) { /* assert(VISIBLEON(c, c->mon)); ? */ /* Use top-level wlr_surface if nothing more specific given */ - if (!surface) { + if (!surface) surface = WLR_SURFACE(c); - } /* Focus the correct monitor (must come after selclient!) */ selmon = c->mon;