xwayland: (Re)set seat when xwayland is ready

For some reason wlroots will reset the seat assigned to xwayland
to NULL whenever Xwayland terminates. This patch restores the seat
whenever Xwayland is ready again.

Fixes #166
Fixes #444

Thanks @droc12345 for figuring out the actual issue.
This commit is contained in:
Consolatis 2022-07-21 02:47:20 +02:00
parent 6e1dd2dbfa
commit 819404c43b
2 changed files with 15 additions and 4 deletions

View file

@ -165,6 +165,7 @@ struct server {
struct wl_listener xdg_toplevel_decoration;
#if HAVE_XWAYLAND
struct wlr_xwayland *xwayland;
struct wl_listener xwayland_ready;
struct wl_listener new_xwayland_surface;
#endif