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)); ? */
/* 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!) */