diff --git a/autotests/integration/internal_window.cpp b/autotests/integration/internal_window.cpp index 1c5a91f8e6..51dc797a9f 100644 --- a/autotests/integration/internal_window.cpp +++ b/autotests/integration/internal_window.cpp @@ -191,7 +191,7 @@ void InternalWindowTest::initTestCase() 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::waitForWaylandKeyboard()); } diff --git a/autotests/integration/xdgshellclient_test.cpp b/autotests/integration/xdgshellclient_test.cpp index ee418e332b..166d01fca0 100644 --- a/autotests/integration/xdgshellclient_test.cpp +++ b/autotests/integration/xdgshellclient_test.cpp @@ -133,7 +133,8 @@ void TestXdgShellClient::init() QVERIFY(Test::waitForWaylandPointer()); 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()