diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 0e79398d0..312841ae0 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c @@ -395,12 +395,12 @@ static void handle_touch_down(struct wl_listener *listener, void *data) { event->touch_id, sx, sy); cursor_set_image(cursor, NULL, NULL); } - } static void handle_touch_up(struct wl_listener *listener, void *data) { struct sway_cursor *cursor = wl_container_of(listener, cursor, touch_up); + struct libtouch_engine *engine = cursor->gesture_engine; wlr_idle_notify_activity(server.idle, cursor->seat->wlr_seat); struct wlr_event_touch_up *event = data; struct wlr_seat *seat = cursor->seat->wlr_seat;