Commit 5e350b0d authored by David Edmundson's avatar David Edmundson Committed by Vlad Zahorodnii
Browse files

[autotests] Fix mouse between screens

There were multiple other cases of placing the mouse between screens at
the start of tests. It seems to be all copy paste.

Only maximise and pointerConstraints were failing before this, but we
may as well fix all of them.
parent d1e9a4a4
......@@ -68,7 +68,7 @@ void TestDontCrashUseractionsMenu::init()
QVERIFY(Test::setupWaylandConnection());
screens()->setCurrent(0);
KWin::Cursors::self()->mouse()->setPos(QPoint(1280, 512));
KWin::Cursors::self()->mouse()->setPos(QPoint(512, 512));
}
void TestDontCrashUseractionsMenu::cleanup()
......
......@@ -86,7 +86,7 @@ void InputMethodTest::init()
screens()->setCurrent(0);
KWin::Cursors::self()->mouse()->setPos(QPoint(1280, 512));
KWin::Cursors::self()->mouse()->setPos(QPoint(512, 512));
const QDBusMessage message = QDBusMessage::createMethodCall(QStringLiteral("org.kde.kwin.testvirtualkeyboard"),
QStringLiteral("/VirtualKeyboard"),
......
......@@ -74,7 +74,7 @@ void TestMaximized::init()
Test::AdditionalWaylandInterface::PlasmaShell));
screens()->setCurrent(0);
KWin::Cursors::self()->mouse()->setPos(QPoint(1280, 512));
KWin::Cursors::self()->mouse()->setPos(QPoint(512, 512));
}
void TestMaximized::cleanup()
......
......@@ -86,7 +86,7 @@ void TestPointerConstraints::init()
QVERIFY(Test::waitForWaylandPointer());
screens()->setCurrent(0);
KWin::Cursors::self()->mouse()->setPos(QPoint(1280, 512));
KWin::Cursors::self()->mouse()->setPos(QPoint(512, 512));
}
void TestPointerConstraints::cleanup()
......@@ -140,7 +140,7 @@ void TestPointerConstraints::testConfinedPointer()
// picking a position outside the window geometry should not move pointer
QSignalSpy pointerPositionChangedSpy(input(), &InputRedirection::globalPointerChanged);
QVERIFY(pointerPositionChangedSpy.isValid());
KWin::Cursors::self()->mouse()->setPos(QPoint(1280, 512));
KWin::Cursors::self()->mouse()->setPos(QPoint(512, 512));
QVERIFY(pointerPositionChangedSpy.isEmpty());
QCOMPARE(KWin::Cursors::self()->mouse()->pos(), c->frameGeometry().center());
......
......@@ -71,7 +71,7 @@ void TouchInputTest::init()
QVERIFY(m_touch->isValid());
screens()->setCurrent(0);
Cursors::self()->mouse()->setPos(QPoint(1280, 512));
Cursors::self()->mouse()->setPos(QPoint(512, 512));
}
void TouchInputTest::cleanup()
......
......@@ -74,7 +74,7 @@ void TestWindowSelection::init()
QVERIFY(Test::waitForWaylandPointer());
screens()->setCurrent(0);
KWin::Cursors::self()->mouse()->setPos(QPoint(1280, 512));
KWin::Cursors::self()->mouse()->setPos(QPoint(512, 512));
}
void TestWindowSelection::cleanup()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment