[mutter] clutter/click-action: Don't stop release events if gesture is inactive



commit 8ad4056aa2cc9364d58d8fc0df6d271afa866815
Author: Jonas Dreßler <verdre v0yd nl>
Date:   Wed Aug 3 14:36:06 2022 +0200

    clutter/click-action: Don't stop release events if gesture is inactive
    
    I don't see how this makes sense at all, ClutterClickAction really
    shouldn't mess with BUTTON_RELEASE events that are not part of a
    gesture.
    
    So propagate those events instead of stopping them.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2552>

 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 7ff69cff5e..4691d6c867 100644
--- a/clutter/clutter/clutter-click-action.c
+++ b/clutter/clutter/clutter-click-action.c
@@ -360,7 +360,7 @@ clutter_click_action_handle_event (ClutterAction      *action,
       G_GNUC_FALLTHROUGH;
     case CLUTTER_BUTTON_RELEASE:
       if (!priv->is_held)
-        return CLUTTER_EVENT_STOP;
+        return CLUTTER_EVENT_PROPAGATE;
 
       if ((has_button && clutter_event_get_button (event) != priv->press_button) ||
           clutter_event_get_device (event) != priv->press_device ||


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