From 2ce0305483b7ca28d2ef27c7c3fd9f3282875ede Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sat, 16 Apr 2022 09:24:10 -0400 Subject: [PATCH] seat: Don't finish wlr_keyboard if server was never started --- backend/wayland/seat.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c index 261da909e..c05591aa3 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);