diff --git a/autotests/integration/activation_test.cpp b/autotests/integration/activation_test.cpp index af78c7e875..a51697bff3 100644 --- a/autotests/integration/activation_test.cpp +++ b/autotests/integration/activation_test.cpp @@ -60,7 +60,6 @@ void ActivationTest::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void ActivationTest::init() diff --git a/autotests/integration/activities_test.cpp b/autotests/integration/activities_test.cpp index 41b60c59f1..2305f98b0b 100644 --- a/autotests/integration/activities_test.cpp +++ b/autotests/integration/activities_test.cpp @@ -62,7 +62,6 @@ void ActivitiesTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void ActivitiesTest::cleanupTestCase() diff --git a/autotests/integration/dbus_interface_test.cpp b/autotests/integration/dbus_interface_test.cpp index 66135e8976..55ab957c29 100644 --- a/autotests/integration/dbus_interface_test.cpp +++ b/autotests/integration/dbus_interface_test.cpp @@ -65,7 +65,6 @@ void TestDbusInterface::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); VirtualDesktopManager::self()->setCount(4); } diff --git a/autotests/integration/debug_console_test.cpp b/autotests/integration/debug_console_test.cpp index df8a5db1e2..5aedafb68d 100644 --- a/autotests/integration/debug_console_test.cpp +++ b/autotests/integration/debug_console_test.cpp @@ -62,7 +62,6 @@ void DebugConsoleTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void DebugConsoleTest::cleanup() diff --git a/autotests/integration/decoration_input_test.cpp b/autotests/integration/decoration_input_test.cpp index 5859a276a1..44947665ef 100644 --- a/autotests/integration/decoration_input_test.cpp +++ b/autotests/integration/decoration_input_test.cpp @@ -143,7 +143,6 @@ void DecorationInputTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void DecorationInputTest::init() diff --git a/autotests/integration/desktop_window_x11_test.cpp b/autotests/integration/desktop_window_x11_test.cpp index e7af6d1bbf..77bfa634cf 100644 --- a/autotests/integration/desktop_window_x11_test.cpp +++ b/autotests/integration/desktop_window_x11_test.cpp @@ -56,7 +56,6 @@ void X11DesktopWindowTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void X11DesktopWindowTest::init() diff --git a/autotests/integration/dont_crash_aurorae_destroy_deco.cpp b/autotests/integration/dont_crash_aurorae_destroy_deco.cpp index 464c3a984b..71821a0144 100644 --- a/autotests/integration/dont_crash_aurorae_destroy_deco.cpp +++ b/autotests/integration/dont_crash_aurorae_destroy_deco.cpp @@ -62,7 +62,6 @@ void DontCrashAuroraeDestroyDecoTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); QCOMPARE(Compositor::self()->backend()->compositingType(), KWin::OpenGLCompositing); } diff --git a/autotests/integration/dont_crash_cursor_physical_size_empty.cpp b/autotests/integration/dont_crash_cursor_physical_size_empty.cpp index 2fe44b1a9e..0fb7bcbfcc 100644 --- a/autotests/integration/dont_crash_cursor_physical_size_empty.cpp +++ b/autotests/integration/dont_crash_cursor_physical_size_empty.cpp @@ -71,7 +71,6 @@ void DontCrashCursorPhysicalSizeEmpty::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void DontCrashCursorPhysicalSizeEmpty::testMoveCursorOverDeco() diff --git a/autotests/integration/dont_crash_empty_deco.cpp b/autotests/integration/dont_crash_empty_deco.cpp index de91733338..edcf171280 100644 --- a/autotests/integration/dont_crash_empty_deco.cpp +++ b/autotests/integration/dont_crash_empty_deco.cpp @@ -54,7 +54,6 @@ void DontCrashEmptyDecorationTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); QCOMPARE(Compositor::self()->backend()->compositingType(), KWin::OpenGLCompositing); } diff --git a/autotests/integration/dont_crash_no_border.cpp b/autotests/integration/dont_crash_no_border.cpp index 4ec4c54eae..1a0fc242d5 100644 --- a/autotests/integration/dont_crash_no_border.cpp +++ b/autotests/integration/dont_crash_no_border.cpp @@ -63,7 +63,6 @@ void DontCrashNoBorder::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); QCOMPARE(Compositor::self()->backend()->compositingType(), KWin::OpenGLCompositing); } diff --git a/autotests/integration/dont_crash_reinitialize_compositor.cpp b/autotests/integration/dont_crash_reinitialize_compositor.cpp index af007a11c3..76b9d8166e 100644 --- a/autotests/integration/dont_crash_reinitialize_compositor.cpp +++ b/autotests/integration/dont_crash_reinitialize_compositor.cpp @@ -70,7 +70,6 @@ void DontCrashReinitializeCompositorTest::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); QCOMPARE(Compositor::self()->backend()->compositingType(), KWin::OpenGLCompositing); } diff --git a/autotests/integration/dont_crash_useractions_menu.cpp b/autotests/integration/dont_crash_useractions_menu.cpp index 14354d1e5b..4af9ebb51b 100644 --- a/autotests/integration/dont_crash_useractions_menu.cpp +++ b/autotests/integration/dont_crash_useractions_menu.cpp @@ -62,7 +62,6 @@ void TestDontCrashUseractionsMenu::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void TestDontCrashUseractionsMenu::init() diff --git a/autotests/integration/effects/desktop_switching_animation_test.cpp b/autotests/integration/effects/desktop_switching_animation_test.cpp index e1fbf6743b..6f174268f0 100644 --- a/autotests/integration/effects/desktop_switching_animation_test.cpp +++ b/autotests/integration/effects/desktop_switching_animation_test.cpp @@ -62,7 +62,6 @@ void DesktopSwitchingAnimationTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); QCOMPARE(Compositor::self()->backend()->compositingType(), KWin::OpenGLCompositing); } diff --git a/autotests/integration/effects/maximize_animation_test.cpp b/autotests/integration/effects/maximize_animation_test.cpp index 1256520312..473b1255a3 100644 --- a/autotests/integration/effects/maximize_animation_test.cpp +++ b/autotests/integration/effects/maximize_animation_test.cpp @@ -59,7 +59,6 @@ void MaximizeAnimationTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void MaximizeAnimationTest::init() diff --git a/autotests/integration/effects/minimize_animation_test.cpp b/autotests/integration/effects/minimize_animation_test.cpp index fe62bb8fbb..09f7cd1f3c 100644 --- a/autotests/integration/effects/minimize_animation_test.cpp +++ b/autotests/integration/effects/minimize_animation_test.cpp @@ -63,7 +63,6 @@ void MinimizeAnimationTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); QCOMPARE(Compositor::self()->backend()->compositingType(), KWin::OpenGLCompositing); } diff --git a/autotests/integration/effects/popup_open_close_animation_test.cpp b/autotests/integration/effects/popup_open_close_animation_test.cpp index 10fd9f581c..7aaef9c2b0 100644 --- a/autotests/integration/effects/popup_open_close_animation_test.cpp +++ b/autotests/integration/effects/popup_open_close_animation_test.cpp @@ -68,7 +68,6 @@ void PopupOpenCloseAnimationTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void PopupOpenCloseAnimationTest::init() diff --git a/autotests/integration/effects/toplevel_open_close_animation_test.cpp b/autotests/integration/effects/toplevel_open_close_animation_test.cpp index 2fa81c6e1a..10d450b4af 100644 --- a/autotests/integration/effects/toplevel_open_close_animation_test.cpp +++ b/autotests/integration/effects/toplevel_open_close_animation_test.cpp @@ -65,7 +65,6 @@ void ToplevelOpenCloseAnimationTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); QCOMPARE(Compositor::self()->backend()->compositingType(), KWin::OpenGLCompositing); } diff --git a/autotests/integration/globalshortcuts_test.cpp b/autotests/integration/globalshortcuts_test.cpp index a1fa12cfc3..efb79f5756 100644 --- a/autotests/integration/globalshortcuts_test.cpp +++ b/autotests/integration/globalshortcuts_test.cpp @@ -69,7 +69,6 @@ void GlobalShortcutsTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void GlobalShortcutsTest::init() diff --git a/autotests/integration/idle_inhibition_test.cpp b/autotests/integration/idle_inhibition_test.cpp index 08406ee2fe..53cad7729d 100644 --- a/autotests/integration/idle_inhibition_test.cpp +++ b/autotests/integration/idle_inhibition_test.cpp @@ -48,7 +48,6 @@ void TestIdleInhibition::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void TestIdleInhibition::init() diff --git a/autotests/integration/input_stacking_order.cpp b/autotests/integration/input_stacking_order.cpp index 7b1d2e0137..242b141ab9 100644 --- a/autotests/integration/input_stacking_order.cpp +++ b/autotests/integration/input_stacking_order.cpp @@ -62,7 +62,6 @@ void InputStackingOrderTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void InputStackingOrderTest::init() diff --git a/autotests/integration/inputmethod_test.cpp b/autotests/integration/inputmethod_test.cpp index b464af5ce5..e06ca2414e 100644 --- a/autotests/integration/inputmethod_test.cpp +++ b/autotests/integration/inputmethod_test.cpp @@ -93,7 +93,6 @@ void InputMethodTest::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void InputMethodTest::init() diff --git a/autotests/integration/internal_window.cpp b/autotests/integration/internal_window.cpp index db5b8f5417..d63e06d0ea 100644 --- a/autotests/integration/internal_window.cpp +++ b/autotests/integration/internal_window.cpp @@ -192,7 +192,6 @@ void InternalWindowTest::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void InternalWindowTest::init() diff --git a/autotests/integration/keyboard_layout_test.cpp b/autotests/integration/keyboard_layout_test.cpp index 97e3661c13..8e5f740773 100644 --- a/autotests/integration/keyboard_layout_test.cpp +++ b/autotests/integration/keyboard_layout_test.cpp @@ -146,7 +146,6 @@ void KeyboardLayoutTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); // don't get DBus signal on one-layout configuration // QVERIFY(layoutsReconfiguredSpy.wait()); diff --git a/autotests/integration/keymap_creation_failure_test.cpp b/autotests/integration/keymap_creation_failure_test.cpp index d9da22d3b5..a68484ff4d 100644 --- a/autotests/integration/keymap_creation_failure_test.cpp +++ b/autotests/integration/keymap_creation_failure_test.cpp @@ -63,7 +63,6 @@ void KeymapCreationFailureTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void KeymapCreationFailureTest::init() diff --git a/autotests/integration/kwin_wayland_test.cpp b/autotests/integration/kwin_wayland_test.cpp index 40e308d75e..4df48d7803 100644 --- a/autotests/integration/kwin_wayland_test.cpp +++ b/autotests/integration/kwin_wayland_test.cpp @@ -169,6 +169,8 @@ void WaylandTestApplication::continueStartupWithScene() createWorkspace(); createPlugins(); + waylandServer()->initWorkspace(); + if (!waylandServer()->start()) { qFatal("Failed to initialize the Wayland server, exiting now"); } diff --git a/autotests/integration/kwin_wayland_test.h b/autotests/integration/kwin_wayland_test.h index 1489b001aa..08d03b6fd4 100644 --- a/autotests/integration/kwin_wayland_test.h +++ b/autotests/integration/kwin_wayland_test.h @@ -654,8 +654,6 @@ bool lockScreen(); */ bool unlockScreen(); -void initWaylandWorkspace(); - Window *inputPanelWindow(); MockInputMethod *inputMethod(); KWayland::Client::Surface *inputPanelSurface(); diff --git a/autotests/integration/kwinbindings_test.cpp b/autotests/integration/kwinbindings_test.cpp index 79d2215d31..bb38718682 100644 --- a/autotests/integration/kwinbindings_test.cpp +++ b/autotests/integration/kwinbindings_test.cpp @@ -55,7 +55,6 @@ void KWinBindingsTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void KWinBindingsTest::init() diff --git a/autotests/integration/layershellv1window_test.cpp b/autotests/integration/layershellv1window_test.cpp index bb29c9bca9..95c8ae3d3d 100644 --- a/autotests/integration/layershellv1window_test.cpp +++ b/autotests/integration/layershellv1window_test.cpp @@ -65,7 +65,6 @@ void LayerShellV1WindowTest::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void LayerShellV1WindowTest::init() diff --git a/autotests/integration/lockscreen.cpp b/autotests/integration/lockscreen.cpp index 2e1a774b74..16f698faf4 100644 --- a/autotests/integration/lockscreen.cpp +++ b/autotests/integration/lockscreen.cpp @@ -192,7 +192,6 @@ void LockScreenTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); QCOMPARE(Compositor::self()->backend()->compositingType(), KWin::OpenGLCompositing); } diff --git a/autotests/integration/maximize_test.cpp b/autotests/integration/maximize_test.cpp index fce1ab602c..5d3f9647f0 100644 --- a/autotests/integration/maximize_test.cpp +++ b/autotests/integration/maximize_test.cpp @@ -62,7 +62,6 @@ void TestMaximized::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void TestMaximized::init() diff --git a/autotests/integration/modifier_only_shortcut_test.cpp b/autotests/integration/modifier_only_shortcut_test.cpp index 761dcc2e08..580e0ceb4e 100644 --- a/autotests/integration/modifier_only_shortcut_test.cpp +++ b/autotests/integration/modifier_only_shortcut_test.cpp @@ -92,7 +92,6 @@ void ModifierOnlyShortcutTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void ModifierOnlyShortcutTest::init() diff --git a/autotests/integration/nightcolor_test.cpp b/autotests/integration/nightcolor_test.cpp index 20eb339710..afcc9a479c 100644 --- a/autotests/integration/nightcolor_test.cpp +++ b/autotests/integration/nightcolor_test.cpp @@ -43,7 +43,6 @@ void NightColorTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); NightColorManager *manager = NightColorManager::self(); QVERIFY(manager); diff --git a/autotests/integration/no_global_shortcuts_test.cpp b/autotests/integration/no_global_shortcuts_test.cpp index 5b560055f5..0f5743f1e4 100644 --- a/autotests/integration/no_global_shortcuts_test.cpp +++ b/autotests/integration/no_global_shortcuts_test.cpp @@ -100,7 +100,6 @@ void NoGlobalShortcutsTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void NoGlobalShortcutsTest::init() diff --git a/autotests/integration/outputchanges_test.cpp b/autotests/integration/outputchanges_test.cpp index c5e3dfaf94..05f0faaf83 100644 --- a/autotests/integration/outputchanges_test.cpp +++ b/autotests/integration/outputchanges_test.cpp @@ -51,7 +51,6 @@ void OutputChangesTest::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void OutputChangesTest::init() diff --git a/autotests/integration/placement_test.cpp b/autotests/integration/placement_test.cpp index 51e58d3558..d1977f00a4 100644 --- a/autotests/integration/placement_test.cpp +++ b/autotests/integration/placement_test.cpp @@ -91,7 +91,6 @@ void TestPlacement::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void TestPlacement::setPlacementPolicy(Placement::Policy policy) diff --git a/autotests/integration/plasmawindow_test.cpp b/autotests/integration/plasmawindow_test.cpp index 8a8f5871fe..d8cac8aa04 100644 --- a/autotests/integration/plasmawindow_test.cpp +++ b/autotests/integration/plasmawindow_test.cpp @@ -73,7 +73,6 @@ void PlasmaWindowTest::initTestCase() QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); setenv("QMLSCENE_DEVICE", "softwarecontext", true); - Test::initWaylandWorkspace(); } void PlasmaWindowTest::init() diff --git a/autotests/integration/pointer_constraints_test.cpp b/autotests/integration/pointer_constraints_test.cpp index 769fe285bc..817981c216 100644 --- a/autotests/integration/pointer_constraints_test.cpp +++ b/autotests/integration/pointer_constraints_test.cpp @@ -78,7 +78,6 @@ void TestPointerConstraints::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void TestPointerConstraints::init() diff --git a/autotests/integration/pointer_input.cpp b/autotests/integration/pointer_input.cpp index 0938fcca14..3946f6d3f3 100644 --- a/autotests/integration/pointer_input.cpp +++ b/autotests/integration/pointer_input.cpp @@ -158,7 +158,6 @@ void PointerInputTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void PointerInputTest::init() diff --git a/autotests/integration/screen_changes_test.cpp b/autotests/integration/screen_changes_test.cpp index 87d6b341ed..1e24fe5946 100644 --- a/autotests/integration/screen_changes_test.cpp +++ b/autotests/integration/screen_changes_test.cpp @@ -45,7 +45,6 @@ void ScreenChangesTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void ScreenChangesTest::init() diff --git a/autotests/integration/screenedge_client_show_test.cpp b/autotests/integration/screenedge_client_show_test.cpp index 71406cf67f..56d2da692b 100644 --- a/autotests/integration/screenedge_client_show_test.cpp +++ b/autotests/integration/screenedge_client_show_test.cpp @@ -63,7 +63,6 @@ void ScreenEdgeClientShowTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void ScreenEdgeClientShowTest::init() diff --git a/autotests/integration/screenedges_test.cpp b/autotests/integration/screenedges_test.cpp index a3cdd5a528..3c3e5c04a8 100644 --- a/autotests/integration/screenedges_test.cpp +++ b/autotests/integration/screenedges_test.cpp @@ -85,7 +85,6 @@ void ScreenEdgesTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void ScreenEdgesTest::init() diff --git a/autotests/integration/screens_test.cpp b/autotests/integration/screens_test.cpp index 3e32b69a15..f577f3f3e6 100644 --- a/autotests/integration/screens_test.cpp +++ b/autotests/integration/screens_test.cpp @@ -60,7 +60,6 @@ void ScreensTest::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void ScreensTest::init() diff --git a/autotests/integration/scripting/minimizeall_test.cpp b/autotests/integration/scripting/minimizeall_test.cpp index f5a5d946f9..ac2f6799f5 100644 --- a/autotests/integration/scripting/minimizeall_test.cpp +++ b/autotests/integration/scripting/minimizeall_test.cpp @@ -57,7 +57,6 @@ void MinimizeAllScriptTest::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } static QString locateMainScript(const QString &pluginName) diff --git a/autotests/integration/shade_test.cpp b/autotests/integration/shade_test.cpp index 88b13d573e..87e263c2a6 100644 --- a/autotests/integration/shade_test.cpp +++ b/autotests/integration/shade_test.cpp @@ -51,7 +51,6 @@ void ShadeTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void ShadeTest::init() diff --git a/autotests/integration/showing_desktop_test.cpp b/autotests/integration/showing_desktop_test.cpp index 21e281a59b..7da9e5241c 100644 --- a/autotests/integration/showing_desktop_test.cpp +++ b/autotests/integration/showing_desktop_test.cpp @@ -43,7 +43,6 @@ void ShowingDesktopTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void ShowingDesktopTest::init() diff --git a/autotests/integration/stacking_order_test.cpp b/autotests/integration/stacking_order_test.cpp index a1259b69e4..78847a43bc 100644 --- a/autotests/integration/stacking_order_test.cpp +++ b/autotests/integration/stacking_order_test.cpp @@ -64,7 +64,6 @@ void StackingOrderTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void StackingOrderTest::init() diff --git a/autotests/integration/struts_test.cpp b/autotests/integration/struts_test.cpp index 04641c7afb..dee562bba3 100644 --- a/autotests/integration/struts_test.cpp +++ b/autotests/integration/struts_test.cpp @@ -80,7 +80,6 @@ void StrutsTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void StrutsTest::init() diff --git a/autotests/integration/tabbox_test.cpp b/autotests/integration/tabbox_test.cpp index f639b3fee3..7f2f96179e 100644 --- a/autotests/integration/tabbox_test.cpp +++ b/autotests/integration/tabbox_test.cpp @@ -55,7 +55,6 @@ void TabBoxTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } void TabBoxTest::init() diff --git a/autotests/integration/test_helpers.cpp b/autotests/integration/test_helpers.cpp index af8e0a7d11..97a018dbbb 100644 --- a/autotests/integration/test_helpers.cpp +++ b/autotests/integration/test_helpers.cpp @@ -969,13 +969,6 @@ bool unlockScreen() } #endif // KWIN_BUILD_LOCKSCREEN -void initWaylandWorkspace() -{ - QSignalSpy workspaceInitializedSpy(waylandServer(), &WaylandServer::initialized); - waylandServer()->initWorkspace(); - QVERIFY(workspaceInitializedSpy.count() || workspaceInitializedSpy.wait()); -} - WaylandOutputManagementV2::WaylandOutputManagementV2(struct ::wl_registry *registry, int id, int version) : QObject() , QtWayland::kde_output_management_v2() diff --git a/autotests/integration/test_virtualkeyboard_dbus.cpp b/autotests/integration/test_virtualkeyboard_dbus.cpp index 1a4bc6cee0..aa4e43bb11 100644 --- a/autotests/integration/test_virtualkeyboard_dbus.cpp +++ b/autotests/integration/test_virtualkeyboard_dbus.cpp @@ -52,7 +52,6 @@ void VirtualKeyboardDBusTest::initTestCase() static_cast(kwinApp())->setInputMethodServerToStart("internal"); kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); QVERIFY(setupWaylandConnection(AdditionalWaylandInterface::Seat | AdditionalWaylandInterface::InputMethodV1 | AdditionalWaylandInterface::TextInputManagerV2 | AdditionalWaylandInterface::TextInputManagerV3)); } diff --git a/autotests/integration/touch_input_test.cpp b/autotests/integration/touch_input_test.cpp index 6e289ddf49..53db852a3a 100644 --- a/autotests/integration/touch_input_test.cpp +++ b/autotests/integration/touch_input_test.cpp @@ -63,7 +63,6 @@ void TouchInputTest::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void TouchInputTest::init() diff --git a/autotests/integration/transient_placement.cpp b/autotests/integration/transient_placement.cpp index 01e5cf7875..3c8a6fe21d 100644 --- a/autotests/integration/transient_placement.cpp +++ b/autotests/integration/transient_placement.cpp @@ -74,7 +74,6 @@ void TransientPlacementTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void TransientPlacementTest::init() diff --git a/autotests/integration/virtual_desktop_test.cpp b/autotests/integration/virtual_desktop_test.cpp index f4076ae295..2820c96377 100644 --- a/autotests/integration/virtual_desktop_test.cpp +++ b/autotests/integration/virtual_desktop_test.cpp @@ -50,7 +50,6 @@ void VirtualDesktopTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); if (kwinApp()->x11Connection()) { // verify the current desktop x11 property on startup, see BUG: 391034 diff --git a/autotests/integration/window_rules_test.cpp b/autotests/integration/window_rules_test.cpp index 129fe89419..cfc4ee57a7 100644 --- a/autotests/integration/window_rules_test.cpp +++ b/autotests/integration/window_rules_test.cpp @@ -55,7 +55,6 @@ void WindowRuleTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void WindowRuleTest::init() diff --git a/autotests/integration/window_selection_test.cpp b/autotests/integration/window_selection_test.cpp index f92520a28c..d26aa34c8e 100644 --- a/autotests/integration/window_selection_test.cpp +++ b/autotests/integration/window_selection_test.cpp @@ -67,7 +67,6 @@ void TestWindowSelection::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void TestWindowSelection::init() diff --git a/autotests/integration/x11_window_test.cpp b/autotests/integration/x11_window_test.cpp index 71536733a8..737ba4328b 100644 --- a/autotests/integration/x11_window_test.cpp +++ b/autotests/integration/x11_window_test.cpp @@ -74,7 +74,6 @@ void X11WindowTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); QVERIFY(KWin::Compositor::self()); - Test::initWaylandWorkspace(); } void X11WindowTest::init() diff --git a/autotests/integration/xdgshellwindow_rules_test.cpp b/autotests/integration/xdgshellwindow_rules_test.cpp index 05c6aa68d9..eed3832727 100644 --- a/autotests/integration/xdgshellwindow_rules_test.cpp +++ b/autotests/integration/xdgshellwindow_rules_test.cpp @@ -190,7 +190,6 @@ void TestXdgShellWindowRules::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); m_config = KSharedConfig::openConfig(QStringLiteral("kwinrulesrc"), KConfig::SimpleConfig); workspace()->rulebook()->setConfig(m_config); diff --git a/autotests/integration/xdgshellwindow_test.cpp b/autotests/integration/xdgshellwindow_test.cpp index c3390b0e2d..15107a0e13 100644 --- a/autotests/integration/xdgshellwindow_test.cpp +++ b/autotests/integration/xdgshellwindow_test.cpp @@ -180,7 +180,6 @@ void TestXdgShellWindow::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void TestXdgShellWindow::init() diff --git a/autotests/integration/xwayland_input_test.cpp b/autotests/integration/xwayland_input_test.cpp index 3ddcabce5f..19cbea56c0 100644 --- a/autotests/integration/xwayland_input_test.cpp +++ b/autotests/integration/xwayland_input_test.cpp @@ -54,7 +54,6 @@ void XWaylandInputTest::initTestCase() QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); setenv("QT_QPA_PLATFORM", "wayland", true); - Test::initWaylandWorkspace(); } void XWaylandInputTest::init() diff --git a/autotests/integration/xwayland_selections_test.cpp b/autotests/integration/xwayland_selections_test.cpp index 7964ddf013..c9683efad3 100644 --- a/autotests/integration/xwayland_selections_test.cpp +++ b/autotests/integration/xwayland_selections_test.cpp @@ -63,7 +63,6 @@ void XwaylandSelectionsTest::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); // // wait till the xclipboard sync data device is created // if (clipboardSyncDevicedCreated.empty()) { // QVERIFY(clipboardSyncDevicedCreated.wait()); diff --git a/autotests/integration/xwaylandserver_crash_test.cpp b/autotests/integration/xwaylandserver_crash_test.cpp index 272ed86701..52e7e45472 100644 --- a/autotests/integration/xwaylandserver_crash_test.cpp +++ b/autotests/integration/xwaylandserver_crash_test.cpp @@ -64,7 +64,6 @@ void XwaylandServerCrashTest::initTestCase() QCOMPARE(outputs.count(), 2); QCOMPARE(outputs[0]->geometry(), QRect(0, 0, 1280, 1024)); QCOMPARE(outputs[1]->geometry(), QRect(1280, 0, 1280, 1024)); - Test::initWaylandWorkspace(); } void XwaylandServerCrashTest::testCrash() diff --git a/autotests/integration/xwaylandserver_restart_test.cpp b/autotests/integration/xwaylandserver_restart_test.cpp index 3c1c5f08c8..6d9b7fb1d0 100644 --- a/autotests/integration/xwaylandserver_restart_test.cpp +++ b/autotests/integration/xwaylandserver_restart_test.cpp @@ -56,7 +56,6 @@ void XwaylandServerRestartTest::initTestCase() kwinApp()->start(); QVERIFY(applicationStartedSpy.wait()); - Test::initWaylandWorkspace(); } static void kwin_safe_kill(QProcess *process)