sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 2d0f15debb0bf354eecc5ac6bb95bfaf6ba584ac
parent 9ef026e8047a012e06497a71923c4b3bc0c9df71
Author: Benjamin Cheng <ben@bcheng.me>
Date:   Sat,  7 Dec 2019 11:21:20 -0500

input/cursor: remove gesture listeners in destroy

Part of #4794. Forgot to remove gesture listeners when the
cursor is destroyed.

Diffstat:
Msway/input/cursor.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git 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);