From cfa7696d7bd6b7b23d73922ad48631b1b0df6e02 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 2 Feb 2023 17:35:53 +0100 Subject: backend/wayland: handle wl_registry.global_remove for wl_seat Destroy the struct wlr_wl_seat when the global is removed. --- include/backend/wayland.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/backend/wayland.h') diff --git a/include/backend/wayland.h b/include/backend/wayland.h index 6dd457a5..5af8ed53 100644 --- a/include/backend/wayland.h +++ b/include/backend/wayland.h @@ -105,6 +105,7 @@ struct wlr_wl_pointer { struct wlr_wl_seat { char *name; struct wl_seat *wl_seat; + uint32_t global_name; struct wlr_wl_backend *backend; @@ -148,7 +149,8 @@ void init_seat_touch(struct wlr_wl_seat *seat); void init_seat_tablet(struct wlr_wl_seat *seat); void finish_seat_tablet(struct wlr_wl_seat *seat); -bool create_wl_seat(struct wl_seat *wl_seat, struct wlr_wl_backend *wl); +bool create_wl_seat(struct wl_seat *wl_seat, struct wlr_wl_backend *wl, + uint32_t global_name); void destroy_wl_seat(struct wlr_wl_seat *seat); void destroy_wl_buffer(struct wlr_wl_buffer *buffer); -- cgit v1.2.3