mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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:
parent
7703acf1e9
commit
b3c7f418d7
1 changed files with 5 additions and 2 deletions
|
|
@ -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")};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue