aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Moon Sungjoon <sumoon@seoulsaram.org>2022-03-06 01:47:58 +0900
committerLibravatar Simon Ser <contact@emersion.fr>2022-03-05 20:39:47 +0100
commit3444ce730230d281c9db49e2c808710192e69888 (patch)
treeef97d595b5892ed3cdab118a596bca109e52e7e1 /sway/input/seat.c
parentsway/input: don't pass possibly invalid modifiers pointer (diff)
downloadsway-3444ce730230d281c9db49e2c808710192e69888.tar.gz
sway-3444ce730230d281c9db49e2c808710192e69888.tar.zst
sway-3444ce730230d281c9db49e2c808710192e69888.zip
sway/input: destroy sway_switch properly
Fix: #6861 Added seat_device_destroy function to seat_device_destroy function.
Diffstat (limited to 'sway/input/seat.c')
-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) {
42 sway_keyboard_destroy(seat_device->keyboard); 42 sway_keyboard_destroy(seat_device->keyboard);
43 sway_tablet_destroy(seat_device->tablet); 43 sway_tablet_destroy(seat_device->tablet);
44 sway_tablet_pad_destroy(seat_device->tablet_pad); 44 sway_tablet_pad_destroy(seat_device->tablet_pad);
45 sway_switch_destroy(seat_device->switch_device);
45 wlr_cursor_detach_input_device(seat_device->sway_seat->cursor->cursor, 46 wlr_cursor_detach_input_device(seat_device->sway_seat->cursor->cursor,
46 seat_device->input_device->wlr_device); 47 seat_device->input_device->wlr_device);
47 wl_list_remove(&seat_device->link); 48 wl_list_remove(&seat_device->link);