mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-03 18:17:59 +02:00
desktop-shell: Clear out missing listeners
The keyboard focus listener, caps changed and pointer focus listener were missing when destroying the seat. These are necessary to avoid using weston_desktop object even if it was destroyed, which happens due to a focus out event and ultimately handled by the keyboard focus notify callback. Once the seats are destroyed (and implictly the focus handlers) we're safe to destroy weston_desktop object as well. Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
parent
c114fd6ef6
commit
a7392c855d
1 changed files with 3 additions and 0 deletions
|
|
@ -2256,6 +2256,9 @@ get_focused_output(struct weston_compositor *compositor)
|
|||
static void
|
||||
desktop_shell_destroy_seat(struct shell_seat *shseat)
|
||||
{
|
||||
wl_list_remove(&shseat->keyboard_focus_listener.link);
|
||||
wl_list_remove(&shseat->caps_changed_listener.link);
|
||||
wl_list_remove(&shseat->pointer_focus_listener.link);
|
||||
wl_list_remove(&shseat->seat_destroy_listener.link);
|
||||
|
||||
wl_list_remove(&shseat->link);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue