parent
6a27626090
commit
3f8a8ea32a
1 changed files with 1 additions and 15 deletions
|
@ -785,15 +785,7 @@ void TestScreenEdges::testClientEdge()
|
||||||
event.same_screen_focus = 1;
|
event.same_screen_focus = 1;
|
||||||
event.time = QDateTime::currentMSecsSinceEpoch();
|
event.time = QDateTime::currentMSecsSinceEpoch();
|
||||||
QVERIFY(s->isEntered(&event));
|
QVERIFY(s->isEntered(&event));
|
||||||
// first attempt should be pushed back and not activated
|
// autohiding panels shall activate instantly
|
||||||
QCOMPARE(client.isHiddenInternal(), true);
|
|
||||||
QCOMPARE(Cursor::pos(), QPoint(1, 50));
|
|
||||||
|
|
||||||
// but if we wait a little bit it should trigger
|
|
||||||
QTest::qWait(160);
|
|
||||||
Cursor::setPos(0, 50);
|
|
||||||
event.time = QDateTime::currentMSecsSinceEpoch();
|
|
||||||
QVERIFY(s->isEntered(&event));
|
|
||||||
QCOMPARE(client.isHiddenInternal(), false);
|
QCOMPARE(client.isHiddenInternal(), false);
|
||||||
QCOMPARE(Cursor::pos(), QPoint(1, 50));
|
QCOMPARE(Cursor::pos(), QPoint(1, 50));
|
||||||
|
|
||||||
|
@ -831,12 +823,6 @@ void TestScreenEdges::testClientEdge()
|
||||||
QCOMPARE(client.isHiddenInternal(), true);
|
QCOMPARE(client.isHiddenInternal(), true);
|
||||||
Cursor::setPos(50, 0);
|
Cursor::setPos(50, 0);
|
||||||
s->check(QPoint(50, 0), QDateTime::currentDateTime());
|
s->check(QPoint(50, 0), QDateTime::currentDateTime());
|
||||||
QCOMPARE(client.isHiddenInternal(), true);
|
|
||||||
QCOMPARE(Cursor::pos(), QPoint(50, 1));
|
|
||||||
// and trigger
|
|
||||||
QTest::qWait(160);
|
|
||||||
Cursor::setPos(50, 0);
|
|
||||||
s->check(QPoint(50, 0), QDateTime::currentDateTime());
|
|
||||||
QCOMPARE(client.isHiddenInternal(), false);
|
QCOMPARE(client.isHiddenInternal(), false);
|
||||||
QCOMPARE(Cursor::pos(), QPoint(50, 1));
|
QCOMPARE(Cursor::pos(), QPoint(50, 1));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue