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>
dev
Jonas Ådahl 11 years ago committed by Kristian Høgsberg
parent 82fced41cc
commit 1afb2383ea
  1. 3
      src/input.c

@ -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…
Cancel
Save