Commit 2f62e066 authored by David Edmundson's avatar David Edmundson Committed by Nate Graham
Browse files

[kcms/color] Trigger new blend effect when changing palettes

parent 1f92caf3
Pipeline #159268 passed with stage
in 8 minutes and 14 seconds
......@@ -344,12 +344,22 @@ void KCMColors::load()
void KCMColors::save()
{
auto msg = QDBusMessage::createMethodCall(QStringLiteral("org.kde.KWin"),
QStringLiteral("/org/kde/KWin/BlendChanges"),
QStringLiteral("org.kde.KWin.BlendChanges"),
QStringLiteral("start"));
msg << 300;
// This is deliberately blocking so that we ensure Kwin has processed the
// animation start event before we potentially trigger client side changes
QDBusConnection::sessionBus().call(msg);
// We need to save the colors change first, to avoid a situation,
// when we announced that the color scheme has changed, but
// the colors themselves in the color scheme have not yet
if (m_selectedSchemeDirty || m_activeSchemeEdited || colorsSettings()->isSaveNeeded()) {
saveColors();
}
ManagedConfigModule::save();
notifyKcmChange(GlobalChangeType::PaletteChanged);
m_activeSchemeEdited = false;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment