Commit 87c862a9 authored by Derek Foreman's avatar Derek Foreman Committed by Bryce Harrington

input: when destroying a seat, remove keyboard focus first

If we destroy all the devices before trying to remove keyboard focus
we'll segfault because we destroyed the keyboard.
Signed-off-by: default avatarDerek Foreman <>
Reviewed-by: default avatarRyo Munakata <>
Reviewed-by: default avatarBryce Harrington <>
parent 74a635b1
...@@ -383,9 +383,10 @@ udev_seat_destroy(struct udev_seat *seat) ...@@ -383,9 +383,10 @@ udev_seat_destroy(struct udev_seat *seat)
struct weston_keyboard *keyboard = struct weston_keyboard *keyboard =
weston_seat_get_keyboard(&seat->base); weston_seat_get_keyboard(&seat->base);
if (keyboard) if (keyboard)
notify_keyboard_focus_out(&seat->base); notify_keyboard_focus_out(&seat->base);
weston_seat_release(&seat->base); weston_seat_release(&seat->base);
wl_list_remove(&seat->; wl_list_remove(&seat->;
free(seat); free(seat);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment