mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
wlr_xwayland: preserve end of struct on restart
This is more robust than trying to recopy a few fields. Note: wlr_xwayland->events.ready now resets after each trigger, so one can hook on it again and be called when restart is ready
This commit is contained in:
parent
a477e5d302
commit
ec952931a1
2 changed files with 15 additions and 25 deletions
|
|
@ -22,16 +22,18 @@ struct wlr_xwayland {
|
|||
struct wl_client *client;
|
||||
struct wl_display *wl_display;
|
||||
struct wlr_compositor *compositor;
|
||||
struct wlr_seat *seat;
|
||||
time_t server_start;
|
||||
|
||||
struct wl_event_source *sigusr1_source;
|
||||
struct wl_listener client_destroy;
|
||||
struct wl_listener display_destroy;
|
||||
struct wl_listener seat_destroy;
|
||||
struct wlr_xwm *xwm;
|
||||
struct wlr_xwayland_cursor *cursor;
|
||||
|
||||
/* Anything above seat is reset on Xwayland restart, rest is conserved */
|
||||
struct wlr_seat *seat;
|
||||
struct wl_listener seat_destroy;
|
||||
|
||||
struct {
|
||||
struct wl_signal ready;
|
||||
struct wl_signal new_surface;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue