summaryrefslogtreecommitdiff
path: root/modules/background
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2026-01-16 01:55:20 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2026-01-16 01:59:20 +1100
commit33c1c694de3c214306f72c16f7581cd93886dc6b (patch)
treec7e72db99b3b3f0682343131c8bbf0c6268ee655 /modules/background
parentinternal: no async loaders (diff)
downloadcaelestia-shell-33c1c694de3c214306f72c16f7581cd93886dc6b.tar.gz
caelestia-shell-33c1c694de3c214306f72c16f7581cd93886dc6b.tar.bz2
caelestia-shell-33c1c694de3c214306f72c16f7581cd93886dc6b.zip
internal: fix errors due to sync loaders
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