[PATCH weston 2/2] input: Unlink saved kbd focus listener when releasing seat
Jonas Ådahl
jadahl at gmail.com
Fri Jan 3 10:46:51 PST 2014
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 at gmail.com>
---
src/input.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/input.c b/src/input.c
index 07e9d6c..581326d 100644
--- a/src/input.c
+++ b/src/input.c
@@ -2185,6 +2185,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)
--
1.8.3.2
More information about the wayland-devel
mailing list