mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
envmanager: Set Placement mode for KWin to skip window maximize animation when not in docked mode
We can use the placement mode setting in KWin to bypass the need to "maximize" after the window opens, KWin does this for us. We keep the kwin maximize script to enforce docked mode changing window maximization (since the policy only affects new windows).
This commit is contained in:
parent
a66d07f3ff
commit
68bd204e36
1 changed files with 23 additions and 8 deletions
|
|
@ -33,12 +33,27 @@ QMap<QString, QMap<QString, QVariant>> getKwinrcSettings(KSharedConfig::Ptr m_mo
|
|||
auto group = KConfigGroup{m_mobileConfig, QStringLiteral("General")};
|
||||
bool convergenceModeEnabled = group.readEntry("convergenceModeEnabled", false);
|
||||
|
||||
return {
|
||||
{"Plugins", {{"blurEnabled", false}, {"convergentwindowsEnabled", true}}},
|
||||
{"Wayland", {{"InputMethod", "/usr/share/applications/com.github.maliit.keyboard.desktop"}, {"VirtualKeyboardEnabled", true}}},
|
||||
return {{"Windows",
|
||||
{
|
||||
{"Placement", convergenceModeEnabled ? "Centered" : "Maximizing"} // maximize all windows by default if we aren't in convergence mode
|
||||
}},
|
||||
{"Plugins",
|
||||
{
|
||||
{"blurEnabled", false}, // disable blur for performance reasons, we could reconsider in the future for more powerful devices
|
||||
{"convergentwindowsEnabled", true} // enable our convergent window plugin
|
||||
}},
|
||||
{"Wayland",
|
||||
{
|
||||
{"InputMethod", "/usr/share/applications/com.github.maliit.keyboard.desktop"}, // ensure maliit is our vkbd
|
||||
{"VirtualKeyboardEnabled", true} // enable vkbd
|
||||
}},
|
||||
{"org.kde.kdecoration2",
|
||||
{{"ButtonsOnRight", convergenceModeEnabled ? "HIAX" : "H"}, // ButtonsOnRight changes depending on whether the device is in convergence mode
|
||||
{"NoPlugin", false}}},
|
||||
{"Input", {{"TabletMode", convergenceModeEnabled ? "off" : "auto"}}} // TabletMode changes depending on whether the device is in convergence mode
|
||||
};
|
||||
{
|
||||
{"ButtonsOnRight", convergenceModeEnabled ? "HIAX" : "H"}, // ButtonsOnRight changes depending on whether the device is in convergence mode
|
||||
{"NoPlugin", false} // ensure that the window decoration plugin is always enabled, otherwise we get Qt default window decorations
|
||||
}},
|
||||
{"Input",
|
||||
{
|
||||
{"TabletMode", convergenceModeEnabled ? "off" : "auto"} // TabletMode changes depending on whether the device is in convergence mode
|
||||
}}};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue