From dcd9a7b9ea005f36131fbdbad001b9bde150dd0c Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 29 Nov 2021 09:53:53 +0200 Subject: [PATCH] autotests: Use Smart placement by default Many tests were written with the smart placement in mind and fail now because the default placement policy was changed to "centered" --- autotests/integration/kwin_wayland_test.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/autotests/integration/kwin_wayland_test.cpp b/autotests/integration/kwin_wayland_test.cpp index 60a6872d1b..4d4e79d903 100644 --- a/autotests/integration/kwin_wayland_test.cpp +++ b/autotests/integration/kwin_wayland_test.cpp @@ -58,6 +58,12 @@ WaylandTestApplication::WaylandTestApplication(OperationMode mode, int &argc, ch qunsetenv("XKB_DEFAULT_VARIANT"); qunsetenv("XKB_DEFAULT_OPTIONS"); + auto config = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); + KConfigGroup windowsGroup = config->group("Windows"); + windowsGroup.writeEntry("Placement", Placement::policyToString(Placement::Smart)); + windowsGroup.sync(); + setConfig(config); + const auto ownPath = libraryPaths().last(); removeLibraryPath(ownPath); addLibraryPath(ownPath);