[mutter/gbsneto/cancel-input-actions: 5/5] Revert "clutter/click-action: Do not process captured event if action is disabled"



commit 0d0834f87c201c50fe3ec2c8fca212213a3e27c9
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Wed Apr 8 12:46:31 2020 -0300

    Revert "clutter/click-action: Do not process captured event if action is disabled"
    
    This reverts commit 5f5ce08ba4f6320f27e53440a0ee8d9799e05cf6. There is
    no way to reach this callback when the click action is disabled.
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1188

 clutter/clutter/clutter-click-action.c | 6 ------
 1 file changed, 6 deletions(-)
---
diff --git a/clutter/clutter/clutter-click-action.c b/clutter/clutter/clutter-click-action.c
index fc882bd6e..0ff853df6 100644
--- a/clutter/clutter/clutter-click-action.c
+++ b/clutter/clutter/clutter-click-action.c
@@ -347,12 +347,6 @@ on_captured_event (ClutterActor       *stage,
   ClutterModifierType modifier_state;
   gboolean has_button = TRUE;
 
-  if (!clutter_actor_meta_get_enabled (CLUTTER_ACTOR_META (action)))
-    {
-      clutter_click_action_release (action);
-      return CLUTTER_EVENT_PROPAGATE;
-    }
-
   actor = clutter_actor_meta_get_actor (CLUTTER_ACTOR_META (action));
 
   switch (clutter_event_type (event))


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