From d56d4370b2ac11ad41b0f537b337922d52a8f640 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 30 Nov 2020 22:14:23 +0000 Subject: [PATCH] [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. --- autotests/integration/internal_window.cpp | 2 +- autotests/integration/xdgshellclient_test.cpp | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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()