backend/wayland: handle wl_registry.global_remove for wl_seat

Destroy the struct wlr_wl_seat when the global is removed.
This commit is contained in:
Simon Ser 2023-02-02 17:35:53 +01:00 committed by Alexander Orzechowski
parent 2b5eb0733e
commit cfa7696d7b
3 changed files with 16 additions and 4 deletions

View file

@ -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);