From 18d86354ec8eb2e54c039392b4641f3b77cddd5d Mon Sep 17 00:00:00 2001 From: bbedward Date: Sun, 30 Nov 2025 10:06:01 -0500 Subject: [PATCH] wallpaper: revert last changes fixes #855 --- quickshell/Modules/WallpaperBackground.qml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/quickshell/Modules/WallpaperBackground.qml b/quickshell/Modules/WallpaperBackground.qml index a85fd30a..1bf2dabc 100644 --- a/quickshell/Modules/WallpaperBackground.qml +++ b/quickshell/Modules/WallpaperBackground.qml @@ -231,7 +231,6 @@ Variants { asynchronous: true smooth: true cache: true - sourceSize: Qt.size(modelData.width, modelData.height) fillMode: root.getFillMode(SettingsData.wallpaperFillMode) } @@ -244,7 +243,6 @@ Variants { asynchronous: true smooth: true cache: true - sourceSize: Qt.size(modelData.width, modelData.height) fillMode: root.getFillMode(SettingsData.wallpaperFillMode) onStatusChanged: { @@ -453,16 +451,14 @@ Variants { duration: root.actualTransitionType === "none" ? 0 : 1000 easing.type: Easing.InOutCubic onFinished: { - const tempSource = nextWallpaper.source; - if (tempSource && nextWallpaper.status === Image.Ready && !tempSource.toString().startsWith("#")) { - currentWallpaper.source = tempSource; - } - root.transitionProgress = 0.0; - currentWallpaper.visible = root.actualTransitionType === "none"; - Qt.callLater(() => { + if (nextWallpaper.source && nextWallpaper.status === Image.Ready && !nextWallpaper.source.toString().startsWith("#")) { + currentWallpaper.source = nextWallpaper.source; + } nextWallpaper.source = ""; nextWallpaper.visible = false; + currentWallpaper.visible = root.actualTransitionType === "none"; + root.transitionProgress = 0.0; }); } }