From 8a46b63a557ef026c4e69b6ebf3498db7c2dfdd8 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 21 Oct 2025 14:05:06 +1100 Subject: background: fix visualiser blur + allow disable Fixes #807 --- modules/background/Background.qml | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'modules/background/Background.qml') diff --git a/modules/background/Background.qml b/modules/background/Background.qml index bdba570..fbacfab 100644 --- a/modules/background/Background.qml +++ b/modules/background/Background.qml @@ -35,29 +35,10 @@ Loader { id: wallpaper } - Loader { - readonly property bool shouldBeActive: Config.background.visualiser.enabled && (!Config.background.visualiser.autoHide || Hypr.monitorFor(win.modelData).activeWorkspace.toplevels.values.every(t => t.lastIpcObject.floating)) ? 1 : 0 - property real offset: shouldBeActive ? 0 : win.modelData.height * 0.2 - + Visualiser { anchors.fill: parent - anchors.topMargin: offset - anchors.bottomMargin: -offset - opacity: shouldBeActive ? 1 : 0 - active: opacity > 0 - asynchronous: true - - sourceComponent: Visualiser { - screen: win.modelData - wallpaper: wallpaper - } - - Behavior on offset { - Anim {} - } - - Behavior on opacity { - Anim {} - } + screen: win.modelData + wallpaper: wallpaper } Loader { -- cgit v1.2.3-freya