[mutter/wip/carlosg/sanitize-gestures: 12/14] clutter: Make ClutterClickAction independent of click count
- From: Marge Bot <marge-bot 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: Fri, 29 Oct 2021 14:51:51 +0000 (UTC)
commit 8c4c3f0308b42a8710e9005b1ed2fa2536254a0c
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.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2024>
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]