diff options
author | Benjamin Cheng <ben@bcheng.me> | 2019-12-07 11:21:20 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-12-07 12:55:37 -0500 |
commit | 2d0f15debb0bf354eecc5ac6bb95bfaf6ba584ac (patch) | |
tree | e6cb0fb75f541cbc949adc61a6020c3a9dcf5c8c | |
parent | input/cursor: pass gesture events to clients (diff) | |
download | sway-2d0f15debb0bf354eecc5ac6bb95bfaf6ba584ac.tar.gz sway-2d0f15debb0bf354eecc5ac6bb95bfaf6ba584ac.tar.zst sway-2d0f15debb0bf354eecc5ac6bb95bfaf6ba584ac.zip |
input/cursor: remove gesture listeners in destroy
Part of #4794. Forgot to remove gesture listeners when the
cursor is destroyed.
-rw-r--r-- | sway/input/cursor.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 6d88cd54..83b5212d 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -840,6 +840,12 @@ void sway_cursor_destroy(struct sway_cursor *cursor) { | |||
840 | 840 | ||
841 | wl_event_source_remove(cursor->hide_source); | 841 | wl_event_source_remove(cursor->hide_source); |
842 | 842 | ||
843 | wl_list_remove(&cursor->pinch_begin.link); | ||
844 | wl_list_remove(&cursor->pinch_update.link); | ||
845 | wl_list_remove(&cursor->pinch_end.link); | ||
846 | wl_list_remove(&cursor->swipe_begin.link); | ||
847 | wl_list_remove(&cursor->swipe_update.link); | ||
848 | wl_list_remove(&cursor->swipe_end.link); | ||
843 | wl_list_remove(&cursor->motion.link); | 849 | wl_list_remove(&cursor->motion.link); |
844 | wl_list_remove(&cursor->motion_absolute.link); | 850 | wl_list_remove(&cursor->motion_absolute.link); |
845 | wl_list_remove(&cursor->button.link); | 851 | wl_list_remove(&cursor->button.link); |