summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2014-01-03 19:46:51 +0100
committerKristian Høgsberg <krh@bitplanet.net>2014-01-27 21:14:25 -0800
commit1afb2383eaf1ff52bcc132220e9fc0c547d68086 (patch)
tree3497116296e49a8756bcbe35f81156cd36efa971
parent82fced41ccc4a8da2781b59deb4d80ffae0b7629 (diff)
input: Unlink saved kbd focus listener when releasing seat1.4
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>
-rw-r--r--src/input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/input.c b/src/input.c
index 157066cc..3f93e552 100644
--- a/src/input.c
+++ b/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)