From 2ce0305483b7ca28d2ef27c7c3fd9f3282875ede Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sat, 16 Apr 2022 09:24:10 -0400 Subject: seat: Don't finish wlr_keyboard if server was never started --- backend/wayland/seat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'backend') 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); -- cgit v1.2.3