[mutter/wip/carlosg/sanitize-gestures: 90/92] clutter: Make ClutterClickAction independent of click count




commit 76e344734aaac052bd31319a4e2aed4ed1dc4edf
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Sep 27 20:37:30 2021 +0200

    clutter: Make ClutterClickAction independent of click count
    
    This will trigger for every button press/release that is obtained,
    regardless of the click count.

 clutter/clutter/clutter-click-action.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/clutter/clutter/clutter-click-action.c b/clutter/clutter/clutter-click-action.c
index e218213b41..4e3fec9d1d 100644
--- a/clutter/clutter/clutter-click-action.c
+++ b/clutter/clutter/clutter-click-action.c
@@ -308,9 +308,6 @@ clutter_click_action_handle_event (ClutterAction      *action,
     case CLUTTER_TOUCH_BEGIN:
       has_button = FALSE;
     case CLUTTER_BUTTON_PRESS:
-      if (has_button && clutter_event_get_click_count (event) != 1)
-        return CLUTTER_EVENT_PROPAGATE;
-
       if (priv->is_held)
         return CLUTTER_EVENT_STOP;
 
@@ -362,7 +359,6 @@ clutter_click_action_handle_event (ClutterAction      *action,
         return CLUTTER_EVENT_STOP;
 
       if ((has_button && clutter_event_get_button (event) != priv->press_button) ||
-          (has_button && clutter_event_get_click_count (event) != 1) ||
           clutter_event_get_device (event) != priv->press_device ||
           clutter_event_get_event_sequence (event) != priv->press_sequence)
         return CLUTTER_EVENT_PROPAGATE;


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