summaryrefslogtreecommitdiff
path: root/modules/background
diff options
context:
space:
mode:
Diffstat (limited to 'modules/background')
-rw-r--r--modules/background/Visualiser.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/background/Visualiser.qml b/modules/background/Visualiser.qml
index f6020da..c9bb9ef 100644
--- a/modules/background/Visualiser.qml
+++ b/modules/background/Visualiser.qml
@@ -15,7 +15,7 @@ Item {
required property ShellScreen screen
required property Wallpaper wallpaper
- readonly property bool shouldBeActive: Config.background.visualiser.enabled && (!Config.background.visualiser.autoHide || Hypr.monitorFor(screen).activeWorkspace.toplevels.values.every(t => t.lastIpcObject.floating))
+ readonly property bool shouldBeActive: Config.background.visualiser.enabled && (!Config.background.visualiser.autoHide || (Hypr.monitorFor(screen)?.activeWorkspace?.toplevels?.values.every(t => t.lastIpcObject?.floating) ?? true))
property real offset: shouldBeActive ? 0 : screen.height * 0.2
opacity: shouldBeActive ? 1 : 0