aboutsummaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-29 17:19:16 +0100
committerDanilo M. <danix@danix.xyz>2026-10-29 17:19:16 +0100
commit6b875524f57d7bbbe4e7c6b6554a4aa929eef567 (patch)
treeeaa7985f7c6c660405ad718d48c7e27cadcbac21 /desktop
parent52e8897f1edd2d06e98a1e9162f3ff98e82cf921 (diff)
downloadquickshell-6b875524f57d7bbbe4e7c6b6554a4aa929eef567.tar.gz
quickshell-6b875524f57d7bbbe4e7c6b6554a4aa929eef567.zip
wallpaper: keep the burn's cover clear until both pictures are decoded
A brief flicker was left at the start of the burn on both screens. The cover drew each picture as soon as it decoded, and the new one, under the old, usually decodes first, so it showed for a frame or two before the old one covered it. Both now stay hidden until both are ready; the surface is clear until then, and swaybg underneath is still showing the old picture, since wallp waits for covered(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/modules/appearance/WallpaperSpread.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/desktop/modules/appearance/WallpaperSpread.qml b/desktop/modules/appearance/WallpaperSpread.qml
index 2f1dd03..02e5f94 100644
--- a/desktop/modules/appearance/WallpaperSpread.qml
+++ b/desktop/modules/appearance/WallpaperSpread.qml
@@ -86,8 +86,13 @@ Scope {
}
// -m fill is a centred crop, which is what PreserveAspectCrop does.
+ // Both hidden until both are decoded: the new one usually lands
+ // first, and drawn under an old one still loading it flashed
+ // the new picture before the burn. Until then the surface is
+ // clear and swaybg shows the old picture itself.
Image {
id: newImg
+ visible: win.ready
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
sourceSize: Qt.size(win.width, win.height)
@@ -97,6 +102,7 @@ Scope {
Image {
id: oldImg
+ visible: win.ready
anchors.fill: parent
fillMode: Image.PreserveAspectCrop
sourceSize: Qt.size(win.width, win.height)