Fix freezing before setting

This commit is contained in:
Ryan Hughes
2026-05-20 22:29:15 -04:00
parent e1066e67d5
commit 0762b20e3e
+7 -4
View File
@@ -198,10 +198,15 @@ Item {
property int frozenBackgroundVersion: -1
function backgroundIsStable() {
return !root.incomingBackground
// Don't freeze before the wallpaper has actually painted at least
// once. base.status === Image.Null on startup (empty source) reports
// "stable" but the surface hasn't committed a frame yet — freezing
// there leaves the wallpaper invisible until something else forces a
// repaint.
return base.status === Image.Ready
&& !root.incomingBackground
&& !root.finishingTransition
&& root.revealProgress >= 1
&& base.status !== Image.Loading
&& oldFrame.status !== Image.Loading
&& incomingFrame.status !== Image.Loading
}
@@ -238,8 +243,6 @@ Item {
}
}
Component.onCompleted: scheduleUpdatesFreeze()
Image {
id: base
anchors.fill: parent