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"
This commit is contained in:
parent
3bb3c604c8
commit
dcd9a7b9ea
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue