mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
transient_seat: initialize seat destroy listener
This fixes a `wl_list_remove()` from an uninitialized listener when using `wlr_transient_seat_v1_deny()` in a `create_seat` handler.
This commit is contained in:
parent
f4327f52cf
commit
c39b3ce7a3
1 changed files with 1 additions and 0 deletions
|
|
@ -64,6 +64,7 @@ static void manager_create_transient_seat(struct wl_client *client,
|
|||
wl_resource_set_implementation(seat->resource, &transient_seat_impl,
|
||||
seat, transient_seat_handle_resource_destroy);
|
||||
|
||||
wl_list_init(&seat->seat_destroy.link);
|
||||
wl_signal_emit_mutable(&manager->events.create_seat, seat);
|
||||
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue