mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 12:32:05 +00:00
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:
parent
f22ea7399c
commit
ff98cbb19f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user