Fix freezing before setting
This commit is contained in:
@@ -198,10 +198,15 @@ Item {
|
|||||||
property int frozenBackgroundVersion: -1
|
property int frozenBackgroundVersion: -1
|
||||||
|
|
||||||
function backgroundIsStable() {
|
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.finishingTransition
|
||||||
&& root.revealProgress >= 1
|
&& root.revealProgress >= 1
|
||||||
&& base.status !== Image.Loading
|
|
||||||
&& oldFrame.status !== Image.Loading
|
&& oldFrame.status !== Image.Loading
|
||||||
&& incomingFrame.status !== Image.Loading
|
&& incomingFrame.status !== Image.Loading
|
||||||
}
|
}
|
||||||
@@ -238,8 +243,6 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: scheduleUpdatesFreeze()
|
|
||||||
|
|
||||||
Image {
|
Image {
|
||||||
id: base
|
id: base
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
Reference in New Issue
Block a user