[mutter/wip/carlosg/grabs-pt2: 99/102] clutter: Fix CLUTTER_LEAVE handling of ClutterClickAction




commit 31933020d26b44379bd601186d37c4ab4c488b81
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Oct 29 12:55:43 2021 +0200

    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.

 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 4e3fec9d1d..77193096a1 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;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]