diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-12-07 11:21:20 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-12-07 11:21:20 -0500 |
| commit | 11d75b886311db090454064b3525cfab119a1220 (patch) | |
| tree | e6cb0fb75f541cbc949adc61a6020c3a9dcf5c8c | |
| parent | 02fe3572fa957bf3e83d064bbf3715a44ada1ef4 (diff) | |
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) { 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); |
