aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2022-04-20 14:49:45 +0300
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-04-22 17:51:24 +0000
commit03c88b07ba64185de7183f52f5f3e4875c5c1d5d (patch)
tree0e9ffcb8a70ed15e5a08685bd0377609269477dc /backend
parenta43d105a507810a5562f8286d2a642e672dd1dca (diff)
backend/wayland: zero out finished input devices
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/seat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c
index c05591aa..3f89ec50 100644
--- a/backend/wayland/seat.c
+++ b/backend/wayland/seat.c
@@ -325,7 +325,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
wl_keyboard_release(seat->wl_keyboard);
wlr_keyboard_finish(&seat->wlr_keyboard);
-
+ memset(&seat->wlr_keyboard, 0, sizeof(seat->wlr_keyboard));
seat->wl_keyboard = NULL;
}
@@ -340,6 +340,7 @@ static void seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
wl_touch_release(seat->wl_touch);
wlr_touch_finish(&seat->wlr_touch);
+ memset(&seat->wlr_touch, 0, sizeof(seat->wlr_touch));
seat->wl_touch = NULL;
}
}