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:
committed by
Kristian Høgsberg
parent
82fced41cc
commit
1afb2383ea
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user