diff --git a/autotests/test_screen_edges.cpp b/autotests/test_screen_edges.cpp index d68fa71280..ba97d52819 100644 --- a/autotests/test_screen_edges.cpp +++ b/autotests/test_screen_edges.cpp @@ -918,6 +918,9 @@ void TestScreenEdges::testTouchEdge() setPos(QPoint(0, 50)); QCOMPARE(s->isEntered(&event), false); QVERIFY(approachingSpy.isEmpty()); + // let's also verify the check + s->check(QPoint(0, 50), QDateTime::currentDateTime(), false); + QVERIFY(approachingSpy.isEmpty()); s->gestureRecognizer()->startSwipeGesture(QPoint(0, 50)); QCOMPARE(approachingSpy.count(), 1); diff --git a/screenedge.cpp b/screenedge.cpp index 269900a611..a5fe4c9ac5 100644 --- a/screenedge.cpp +++ b/screenedge.cpp @@ -1339,6 +1339,9 @@ void ScreenEdges::check(const QPoint &pos, const QDateTime &now, bool forceNoPus if (!(*it)->isReserved()) { continue; } + if (!(*it)->activatesForPointer()) { + continue; + } if ((*it)->approachGeometry().contains(pos)) { (*it)->startApproaching(); }