mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
input/cursor: remove gesture listeners in destroy
Part of #4794. Forgot to remove gesture listeners when the cursor is destroyed.
This commit is contained in:
parent
9ef026e804
commit
2d0f15debb
|
@ -840,6 +840,12 @@ void sway_cursor_destroy(struct sway_cursor *cursor) {
|
|||
|
||||
wl_event_source_remove(cursor->hide_source);
|
||||
|
||||
wl_list_remove(&cursor->pinch_begin.link);
|
||||
wl_list_remove(&cursor->pinch_update.link);
|
||||
wl_list_remove(&cursor->pinch_end.link);
|
||||
wl_list_remove(&cursor->swipe_begin.link);
|
||||
wl_list_remove(&cursor->swipe_update.link);
|
||||
wl_list_remove(&cursor->swipe_end.link);
|
||||
wl_list_remove(&cursor->motion.link);
|
||||
wl_list_remove(&cursor->motion_absolute.link);
|
||||
wl_list_remove(&cursor->button.link);
|
||||
|
|
Loading…
Reference in a new issue