xwayland: add server and basic window functionality

This commit is contained in:
Alexander Courtis 2020-06-23 16:33:05 +10:00
parent e9bfd8c718
commit ae245556e5

5
dwl.c
View File

@ -617,10 +617,7 @@ focusclient(Client *c, struct wlr_surface *surface, int lift)
/* assert(VISIBLEON(c, c->mon)); ? */ /* assert(VISIBLEON(c, c->mon)); ? */
/* Use top-level wlr_surface if nothing more specific given */ /* Use top-level wlr_surface if nothing more specific given */
if (!surface) { if (!surface) {
if (c->xdg_surface) surface = WLR_SURFACE(c);
surface = c->xdg_surface->surface;
else
surface = c->xwayland_surface->surface;
} }
/* Focus the correct monitor (must come after selclient!) */ /* Focus the correct monitor (must come after selclient!) */