From 546cbfb3caeb65baa41d70b0318e3be6dc822e0c Mon Sep 17 00:00:00 2001 From: Mmmattias Date: Mon, 2 Feb 2026 02:47:13 +0100 Subject: [PATCH] wallpaper: Only pause cycling when screen is locked or active window is fullscreen (#1553) --- quickshell/Services/WallpaperCyclingService.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quickshell/Services/WallpaperCyclingService.qml b/quickshell/Services/WallpaperCyclingService.qml index b1981440..60af5cc4 100644 --- a/quickshell/Services/WallpaperCyclingService.qml +++ b/quickshell/Services/WallpaperCyclingService.qml @@ -12,16 +12,16 @@ Singleton { id: root property bool cyclingActive: false - readonly property bool anyFullscreen: { + readonly property bool fullscreenShowing: { if (!ToplevelManager.toplevels?.values) return false; for (const toplevel of ToplevelManager.toplevels.values) { - if (toplevel.fullscreen) + if (toplevel.fullscreen && toplevel.activated) return true; } return false; } - readonly property bool shouldPauseCycling: anyFullscreen || SessionService.locked + readonly property bool shouldPauseCycling: fullscreenShowing || SessionService.locked property string cachedCyclingTime: SessionData.wallpaperCyclingTime property int cachedCyclingInterval: SessionData.wallpaperCyclingInterval property string lastTimeCheck: "" @@ -35,7 +35,7 @@ Singleton { property string targetScreen: "" running: false repeat: true - onTriggered: { + onTriggered: { if (typeof WallpaperCyclingService !== "undefined" && targetScreen !== "" && !WallpaperCyclingService.shouldPauseCycling) { WallpaperCyclingService.cycleNextForMonitor(targetScreen); }