diff options
Diffstat (limited to 'desktop-shell/shell.c')
-rw-r--r-- | desktop-shell/shell.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c index dec9169b..d08b0d81 100644 --- a/desktop-shell/shell.c +++ b/desktop-shell/shell.c @@ -3110,6 +3110,7 @@ shell_seat_caps_changed(struct wl_listener *listener, void *data) wl_signal_add(&seat->seat->keyboard->focus_signal, &seat->keyboard_focus_listener); } else if (!seat->seat->keyboard) { + wl_list_remove(&seat->keyboard_focus_listener.link); wl_list_init(&seat->keyboard_focus_listener.link); } @@ -3118,6 +3119,7 @@ shell_seat_caps_changed(struct wl_listener *listener, void *data) wl_signal_add(&seat->seat->pointer->focus_signal, &seat->pointer_focus_listener); } else if (!seat->seat->pointer) { + wl_list_remove(&seat->pointer_focus_listener.link); wl_list_init(&seat->pointer_focus_listener.link); } } |