From fc1b4ae14951713b3d8c5243d8ad125c1d69cdea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Mon, 9 May 2022 13:17:00 +0200 Subject: [PATCH] gesture-tracker: Only track actions which are actually enabled Tracking disabled actions doesn't make sense, these will never recognize anyway. Part-of: --- src/core/meta-gesture-tracker.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);