aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorMoon Sungjoon <sumoon@seoulsaram.org>2022-03-06 01:47:58 +0900
committerSimon Ser <contact@emersion.fr>2022-03-05 20:39:47 +0100
commit3444ce730230d281c9db49e2c808710192e69888 (patch)
treeef97d595b5892ed3cdab118a596bca109e52e7e1 /sway
parentd6f279902a094230633cde05f9677da67289dd28 (diff)
sway/input: destroy sway_switch properly
Fix: #6861 Added seat_device_destroy function to seat_device_destroy function.
Diffstat (limited to 'sway')
-rw-r--r--sway/input/seat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index a81a88a8..8ab616de 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -42,6 +42,7 @@ static void seat_device_destroy(struct sway_seat_device *seat_device) {
sway_keyboard_destroy(seat_device->keyboard);
sway_tablet_destroy(seat_device->tablet);
sway_tablet_pad_destroy(seat_device->tablet_pad);
+ sway_switch_destroy(seat_device->switch_device);
wlr_cursor_detach_input_device(seat_device->sway_seat->cursor->cursor,
seat_device->input_device->wlr_device);
wl_list_remove(&seat_device->link);