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:
Jonas Ådahl 2014-01-03 19:46:51 +01:00 committed by Kristian Høgsberg
parent 82fced41cc
commit 1afb2383ea
1 changed files with 3 additions and 0 deletions

View File

@ -2194,6 +2194,9 @@ weston_seat_release(struct weston_seat *seat)
{ {
wl_list_remove(&seat->link); wl_list_remove(&seat->link);
if (seat->saved_kbd_focus)
wl_list_remove(&seat->saved_kbd_focus_listener.link);
if (seat->pointer) if (seat->pointer)
weston_pointer_destroy(seat->pointer); weston_pointer_destroy(seat->pointer);
if (seat->keyboard) if (seat->keyboard)