Skip to content

Commit

Permalink
restack xwayland surface on focusclient()
Browse files Browse the repository at this point in the history
  • Loading branch information
sevz17 committed Apr 29, 2022
1 parent d071a89 commit 3a4b7d1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dwl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 3a4b7d1

Please sign in to comment.