From 81cf9f0375c937b973900dce0979d9218d9960ee Mon Sep 17 00:00:00 2001 From: Steffen Hartleib Date: Sat, 26 Sep 2020 14:53:57 +0000 Subject: Allow interaction with folder/files with the stylus again This Patch works for Wayland and X. BUG: 426582 --- src/kitemviews/private/ktwofingertap.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/kitemviews/private/ktwofingertap.cpp') diff --git a/src/kitemviews/private/ktwofingertap.cpp b/src/kitemviews/private/ktwofingertap.cpp index 9f4521d26..edd9d1d35 100644 --- a/src/kitemviews/private/ktwofingertap.cpp +++ b/src/kitemviews/private/ktwofingertap.cpp @@ -10,6 +10,7 @@ // Qt #include #include +#include KTwoFingerTapRecognizer::KTwoFingerTapRecognizer() : QGestureRecognizer(), @@ -28,7 +29,9 @@ QGesture* KTwoFingerTapRecognizer::create(QObject*) QGestureRecognizer::Result KTwoFingerTapRecognizer::recognize(QGesture* gesture, QObject* watched, QEvent* event) { - Q_UNUSED(watched) + if (qobject_cast(watched)) { + return Ignore; + } KTwoFingerTap* const kTwoFingerTap = static_cast(gesture); const QTouchEvent* touchEvent = static_cast(event); -- cgit v1.3.1