mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
types/seat: Clear focus in wlr_seat_destroy()
This fixes use-after-free in surface destroy signal listeners.
This commit is contained in:
parent
87e216b740
commit
e136a4168b
2 changed files with 10 additions and 1 deletions
|
|
@ -318,7 +318,8 @@ struct wlr_seat_keyboard_focus_change_event {
|
|||
*/
|
||||
struct wlr_seat *wlr_seat_create(struct wl_display *display, const char *name);
|
||||
/**
|
||||
* Destroys a wlr_seat and removes its wl_seat global.
|
||||
* Destroys a wlr_seat, removes its wl_seat global and clears focus for all
|
||||
* devices belonging to the seat.
|
||||
*/
|
||||
void wlr_seat_destroy(struct wlr_seat *wlr_seat);
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue