restack xwayland surface on focusclient()

This commit is contained in:
Leonardo Hernández Hernández 2022-04-03 17:18:05 -05:00
parent d071a899f3
commit 3a4b7d104f
No known key found for this signature in database
GPG Key ID: E538897EE11B9624
1 changed files with 9 additions and 0 deletions

9
dwl.c
View File

@ -1135,6 +1135,15 @@ focusclient(Client *c, int lift)
return;
}
#ifdef XWAYLAND
/* This resolves an issue where the last spawned xwayland client
* receives all pointer activity.
*/
if (c->type == X11Managed)
wlr_xwayland_surface_restack(c->surface.xwayland, NULL,
XCB_STACK_MODE_ABOVE);
#endif
/* Have a client, so focus its top-level wlr_surface */
kb = wlr_seat_get_keyboard(seat);
wlr_seat_keyboard_notify_enter(seat, client_surface(c),