envmanager: Ensure KWin is reloaded

We need to also call a workspace reconfigure to ensure settings are
properly applied live.
This commit is contained in:
Devin Lin 2024-11-14 09:18:23 -08:00
parent 7703acf1e9
commit b3c7f418d7

View file

@ -170,8 +170,11 @@ const QString Settings::loadSavedConfigSetting(KSharedConfig::Ptr &config, const
void Settings::reloadKWinConfig()
{
// Most KWin settings are already reloaded through KConfig's notify feature.
// However, effects need to manually be loaded/unloaded in a live KWin session.
// Reload config
QDBusMessage reloadMessage = QDBusMessage::createSignal("/KWin", "org.kde.KWin", "reloadConfig");
QDBusConnection::sessionBus().send(reloadMessage);
// Effects need to manually be loaded/unloaded in a live KWin session.
KConfigGroup pluginsGroup{m_kwinrcConfig, QStringLiteral("Plugins")};