From a1f9b98727e1afd79b3ac6c8e4d8cd2e0df31619 Mon Sep 17 00:00:00 2001 From: bbedward Date: Mon, 23 Mar 2026 09:26:49 -0400 Subject: [PATCH] wallpaper: updatesEnabled set on screen changes --- .../Modules/BlurredWallpaperBackground.qml | 20 ++++++++++++++++ quickshell/Modules/WallpaperBackground.qml | 24 +++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/quickshell/Modules/BlurredWallpaperBackground.qml b/quickshell/Modules/BlurredWallpaperBackground.qml index c07cb4eb..6a5c6e86 100644 --- a/quickshell/Modules/BlurredWallpaperBackground.qml +++ b/quickshell/Modules/BlurredWallpaperBackground.qml @@ -107,6 +107,26 @@ Variants { } } + Connections { + target: blurWallpaperWindow + function onWidthChanged() { + root._renderSettling = true; + renderSettleTimer.restart(); + } + function onHeightChanged() { + root._renderSettling = true; + renderSettleTimer.restart(); + } + } + + Connections { + target: Quickshell + function onScreensChanged() { + root._renderSettling = true; + renderSettleTimer.restart(); + } + } + Timer { id: renderSettleTimer interval: 1000 diff --git a/quickshell/Modules/WallpaperBackground.qml b/quickshell/Modules/WallpaperBackground.qml index 7910e54f..8430b01f 100644 --- a/quickshell/Modules/WallpaperBackground.qml +++ b/quickshell/Modules/WallpaperBackground.qml @@ -108,10 +108,32 @@ Variants { } } + Connections { + target: wallpaperWindow + function onWidthChanged() { + root._renderSettling = true; + renderSettleTimer.restart(); + } + function onHeightChanged() { + root._renderSettling = true; + renderSettleTimer.restart(); + } + } + + Connections { + target: Quickshell + function onScreensChanged() { + root._renderSettling = true; + renderSettleTimer.restart(); + } + } + Connections { target: NiriService function onDisplayScalesChanged() { root._recheckScreenScale(); + root._renderSettling = true; + renderSettleTimer.restart(); } } @@ -119,6 +141,8 @@ Variants { target: WlrOutputService function onWlrOutputAvailableChanged() { root._recheckScreenScale(); + root._renderSettling = true; + renderSettleTimer.restart(); } }