aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-04-26 09:45:00 +0200
committerSimon Ser <contact@emersion.fr>2022-04-28 10:09:50 +0200
commita1e1e9aba8d1ccbd9582be659c5d3d2e587214ff (patch)
tree667e4b1141961ba1d97fef13ae540dbdc19477af
parent6c350799b22ddc5cb89467c95692437bbf0116b9 (diff)
Revert "backend/wayland: zero out finished input devices"
This reverts commit 03c88b07ba64185de7183f52f5f3e4875c5c1d5d. init functions now zero out the structs.
-rw-r--r--backend/wayland/seat.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/wayland/seat.c b/backend/wayland/seat.c
index 3f89ec50..c05591aa 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,7 +340,6 @@ 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;
}
}