xwayland: add server and basic window functionality

This commit is contained in:
Alexander Courtis 2020-06-24 16:15:16 +10:00
parent ae245556e5
commit b3eb7b3c89

3
dwl.c
View File

@ -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;