[mutter/wip/carlosg/sanitize-gestures: 12/14] clutter: Make ClutterClickAction independent of click count
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/sanitize-gestures: 12/14] clutter: Make ClutterClickAction independent of click count
- Date: Mon, 27 Sep 2021 19:59:13 +0000 (UTC)
commit e9b08d7bdc8d0ec2706ed5e792295bef6f4394f0
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 | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-click-action.c b/clutter/clutter/clutter-click-action.c
index e218213b41..f73f91aabc 100644
--- a/clutter/clutter/clutter-click-action.c
+++ b/clutter/clutter/clutter-click-action.c
@@ -308,7 +308,7 @@ 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)
+ if (has_button)
return CLUTTER_EVENT_PROPAGATE;
if (priv->is_held)
@@ -362,7 +362,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]