aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-11-29 15:21:18 -0500
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-11-29 15:21:18 -0500
commit0611c10909b17276bd633a4ee9a322995e9a3580 (patch)
tree379cd0b401fe1c4ac4e3c0e4b9879b2cabaa8ccf
parent338e0a3976f2bad5ec048b022648a671ed443b4f (diff)
types/wlr_seat: finish keyboard_state during wlr_seat_destroy
-rw-r--r--types/seat/wlr_seat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/types/seat/wlr_seat.c b/types/seat/wlr_seat.c
index f83ccd6d..c2985824 100644
--- a/types/seat/wlr_seat.c
+++ b/types/seat/wlr_seat.c
@@ -179,6 +179,8 @@ void wlr_seat_destroy(struct wlr_seat *seat) {
wlr_seat_pointer_clear_focus(seat);
wlr_seat_keyboard_clear_focus(seat);
+ wlr_seat_set_keyboard(seat, NULL);
+
struct wlr_touch_point *point;
wl_list_for_each(point, &seat->touch_state.touch_points, link) {
wlr_seat_touch_point_clear_focus(seat, 0, point->touch_id);