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(); } }