From 4d5d7a6d7e2afc6a4e48f6b52258aa0e55e4c20b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Wed, 20 Jul 2016 14:42:22 +0200 Subject: [PATCH] [autotests/integration] Fix PointerInputTest::testUpdateFocusAfterScreenChange Change the way how a screen is removed. This ensures that Xwayland doesn't die. --- autotests/integration/pointer_input.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autotests/integration/pointer_input.cpp b/autotests/integration/pointer_input.cpp index 8df34703d5..d92b509392 100644 --- a/autotests/integration/pointer_input.cpp +++ b/autotests/integration/pointer_input.cpp @@ -244,8 +244,9 @@ void PointerInputTest::testUpdateFocusAfterScreenChange() QSignalSpy screensChangedSpy(screens(), &Screens::changed); QVERIFY(screensChangedSpy.isValid()); // now let's remove the screen containing the cursor - QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 1)); - QMetaObject::invokeMethod(kwinApp()->platform(), "sizeChanged", Qt::QueuedConnection); + QMetaObject::invokeMethod(kwinApp()->platform(), "outputGeometriesChanged", + Qt::DirectConnection, + Q_ARG(QVector, QVector{QRect(0, 0, 1280, 1024)})); QVERIFY(screensChangedSpy.wait()); QCOMPARE(screens()->count(), 1);