mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
seat: Don't finish wlr_keyboard if server was never started
This commit is contained in:
parent
640f3b9f21
commit
2ce0305483
1 changed files with 4 additions and 1 deletions
|
@ -259,8 +259,11 @@ void destroy_wl_seats(struct wlr_wl_backend *wl) {
|
||||||
}
|
}
|
||||||
if (seat->wl_keyboard) {
|
if (seat->wl_keyboard) {
|
||||||
wl_keyboard_release(seat->wl_keyboard);
|
wl_keyboard_release(seat->wl_keyboard);
|
||||||
|
|
||||||
|
if (seat->backend->started) {
|
||||||
wlr_keyboard_finish(&seat->wlr_keyboard);
|
wlr_keyboard_finish(&seat->wlr_keyboard);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (seat->zwp_tablet_seat_v2) {
|
if (seat->zwp_tablet_seat_v2) {
|
||||||
finish_seat_tablet(seat);
|
finish_seat_tablet(seat);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue