[autotests] Fix autotests

Since the active screen now follows the mouse, the position is
important.

Between two screens is an overly confusing place for it anyway.
This commit is contained in:
David Edmundson 2020-11-30 22:14:23 +00:00
parent 1a4d578b5e
commit d56d4370b2
2 changed files with 3 additions and 2 deletions

View file

@ -191,7 +191,7 @@ void InternalWindowTest::initTestCase()
void InternalWindowTest::init() void InternalWindowTest::init()
{ {
Cursors::self()->mouse()->setPos(QPoint(1280, 512)); Cursors::self()->mouse()->setPos(QPoint(512, 512));
QVERIFY(Test::setupWaylandConnection(Test::AdditionalWaylandInterface::Seat)); QVERIFY(Test::setupWaylandConnection(Test::AdditionalWaylandInterface::Seat));
QVERIFY(Test::waitForWaylandKeyboard()); QVERIFY(Test::waitForWaylandKeyboard());
} }

View file

@ -133,7 +133,8 @@ void TestXdgShellClient::init()
QVERIFY(Test::waitForWaylandPointer()); QVERIFY(Test::waitForWaylandPointer());
screens()->setCurrent(0); screens()->setCurrent(0);
KWin::Cursors::self()->mouse()->setPos(QPoint(1280, 512)); //put mouse in the middle of screen one
KWin::Cursors::self()->mouse()->setPos(QPoint(512, 512));
} }
void TestXdgShellClient::cleanup() void TestXdgShellClient::cleanup()