diff --git a/autotests/integration/test_virtualkeyboard_dbus.cpp b/autotests/integration/test_virtualkeyboard_dbus.cpp index b8a75cfa47..7f29a73212 100644 --- a/autotests/integration/test_virtualkeyboard_dbus.cpp +++ b/autotests/integration/test_virtualkeyboard_dbus.cpp @@ -6,6 +6,14 @@ SPDX-License-Identifier: GPL-2.0-or-later */ + +#include "kwin_wayland_test.h" + +#include "main.h" +#include "platform.h" +#include "virtualkeyboard_dbus.h" +#include "wayland_server.h" + #include #include #include @@ -13,9 +21,6 @@ #include #include -#include "virtualkeyboard_dbus.h" -#include "wayland_server.h" -#include "kwin_wayland_test.h" using KWin::VirtualKeyboardDBus; using namespace KWin; @@ -39,7 +44,9 @@ void VirtualKeyboardDBusTest::initTestCase() QDBusConnection::sessionBus().registerService(QStringLiteral("org.kde.kwin.testvirtualkeyboard")); QSignalSpy applicationStartedSpy(kwinApp(), &Application::started); QVERIFY(applicationStartedSpy.isValid()); + kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); QVERIFY(waylandServer()->init(s_socketName)); + QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); static_cast(kwinApp())->setInputMethodServerToStart("internal"); kwinApp()->start();