From ff98cbb19f8b2e832e5050d58947c8e0426fccee Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 29 Oct 2021 12:55:43 +0200 Subject: [PATCH] clutter: Fix CLUTTER_LEAVE handling of ClutterClickAction Toggling the click action on when leaving the actor/action sounds weird, this was presumably meant to toggle it off on leave, and back to in_held on enter. This way, the CLUTTER_LEAVE handling also matches what we want to do in case of grabs. Part-of: --- clutter/clutter/clutter-click-action.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/clutter-click-action.c b/clutter/clutter/clutter-click-action.c index 4e3fec9d1..77193096a 100644 --- a/clutter/clutter/clutter-click-action.c +++ b/clutter/clutter/clutter-click-action.c @@ -344,7 +344,7 @@ clutter_click_action_handle_event (ClutterAction *action, break; case CLUTTER_LEAVE: - click_action_set_pressed (click_action, priv->is_held); + click_action_set_pressed (click_action, FALSE); click_action_cancel_long_press (click_action); break;