Commit 9f17db0e authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

shell: preserve wallpaper type after changing desktop layout

restore(...) will set the wallpaper type from the value of key "wallpaperplugin".

BUG: 454597
FIXED-IN: 5.24.6


(cherry picked from commit a5165fb6)
parent fabf8613
Pipeline #185919 passed with stage
in 8 minutes and 14 seconds
......@@ -1521,8 +1521,6 @@ Plasma::Containment *ShellCorona::setContainmentTypeForScreen(int screen, const
return oldContainment;
}
newContainment->setWallpaper(oldContainment->wallpaper());
// At this point we have a valid new containment from plugin and a view
// copy all configuration groups (excluded applets)
KConfigGroup oldCg = oldContainment->config();
......@@ -1549,6 +1547,7 @@ Plasma::Containment *ShellCorona::setContainmentTypeForScreen(int screen, const
newContainment->init();
newCg.writeEntry("activityId", oldContainment->activity());
newCg.writeEntry("wallpaperplugin", oldContainment->wallpaper());
newContainment->restore(newCg);
newContainment->updateConstraints(Plasma::Types::StartupCompletedConstraint);
newContainment->flushPendingConstraintsEvents();
......
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