mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-30 14:11:31 +00:00
input: Unlink saved kbd focus listener when releasing seat
Not doing this would leave a invalid list item in the view's destroy signal listener list if destroying a seat that had previously lost keyboard focus. Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
This commit is contained in:
parent
82fced41cc
commit
1afb2383ea
|
@ -2194,6 +2194,9 @@ weston_seat_release(struct weston_seat *seat)
|
|||
{
|
||||
wl_list_remove(&seat->link);
|
||||
|
||||
if (seat->saved_kbd_focus)
|
||||
wl_list_remove(&seat->saved_kbd_focus_listener.link);
|
||||
|
||||
if (seat->pointer)
|
||||
weston_pointer_destroy(seat->pointer);
|
||||
if (seat->keyboard)
|
||||
|
|
Loading…
Reference in a new issue