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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2099>
This commit is contained in:
Carlos Garnacho 2021-10-29 12:55:43 +02:00 committed by Marge Bot
parent f22ea7399c
commit ff98cbb19f

View File

@ -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;