summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJonas Dreßler <verdre@v0yd.nl>2022-05-09 13:17:00 +0200
committerMarge Bot <marge-bot@gnome.org>2022-11-04 19:09:56 +0000
commitfc1b4ae14951713b3d8c5243d8ad125c1d69cdea (patch)
treebcee618e09260c9e6443a7b44217e2d59cd4ab8a /src
parentc40feb33fab6bc258515a6b43a209a2f4bfbe981 (diff)
downloadmutter-fc1b4ae14951713b3d8c5243d8ad125c1d69cdea.tar.gz
gesture-tracker: Only track actions which are actually enabled
Tracking disabled actions doesn't make sense, these will never recognize anyway. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2508>
Diffstat (limited to 'src')
-rw-r--r--src/core/meta-gesture-tracker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/meta-gesture-tracker.c b/src/core/meta-gesture-tracker.c
index 33ee834e3..9e6d55d45 100644
--- a/src/core/meta-gesture-tracker.c
+++ b/src/core/meta-gesture-tracker.c
@@ -370,7 +370,8 @@ meta_gesture_tracker_track_stage (MetaGestureTracker *tracker,
{
GestureActionData data;
- if (!CLUTTER_IS_GESTURE_ACTION (l->data))
+ if (!clutter_actor_meta_get_enabled (l->data) ||
+ !CLUTTER_IS_GESTURE_ACTION (l->data))
continue;
data.gesture = g_object_ref (l->data);