aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-04-16 09:24:10 -0400
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-04-22 01:49:58 +0000
commit2ce0305483b7ca28d2ef27c7c3fd9f3282875ede (patch)
tree20eb9b144ece55a19ea696f39553f57404123181 /backend
parent640f3b9f2156a007c5d1a36afdee570e123c95e4 (diff)
seat: Don't finish wlr_keyboard if server was never started
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/seat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c
index 261da909..c05591aa 100644
--- a/backend/wayland/seat.c
+++ b/backend/wayland/seat.c
@@ -259,7 +259,10 @@ void destroy_wl_seats(struct wlr_wl_backend *wl) {
}
if (seat->wl_keyboard) {
wl_keyboard_release(seat->wl_keyboard);
- wlr_keyboard_finish(&seat->wlr_keyboard);
+
+ if (seat->backend->started) {
+ wlr_keyboard_finish(&seat->wlr_keyboard);
+ }
}
if (seat->zwp_tablet_seat_v2) {
finish_seat_tablet(seat);