From 35e1dc95a52e0ebe09a4323420373b32e06de79a Mon Sep 17 00:00:00 2001 From: lunstia <136163666+lunstia@users.noreply.github.com> Date: Wed, 6 Aug 2025 05:27:29 -0400 Subject: [PATCH 1/2] Fix background hiding in fullscreen --- .config/quickshell/ii/modules/background/Background.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index f960adf8c..2553a8772 100644 --- a/.config/quickshell/ii/modules/background/Background.qml +++ b/.config/quickshell/ii/modules/background/Background.qml @@ -26,9 +26,9 @@ Variants { required property var modelData // Hide when fullscreen - readonly property Toplevel activeWindow: ToplevelManager.activeToplevel - property bool focusingThisMonitor: HyprlandData.activeWorkspace?.monitor == monitor.name - visible: !(activeWindow?.fullscreen && activeWindow?.activated && focusingThisMonitor) + readonly property var monitorHasFullscreen: ToplevelManager.toplevels.values.filter(window=>(window.screens[0].name == monitor.name) && window.fullscreen)[0] + + visible: !(monitorHasFullscreen != undefined) // Workspaces property HyprlandMonitor monitor: Hyprland.monitorFor(modelData) From 6c3451b912dfdcd63b6514cff49924a866cc1cd2 Mon Sep 17 00:00:00 2001 From: lunstia <136163666+lunstia@users.noreply.github.com> Date: Thu, 7 Aug 2025 00:16:26 -0400 Subject: [PATCH 2/2] Fix background not always hiding in fullscreen and other monitors hiding background when they're not supposed to --- .config/quickshell/ii/modules/background/Background.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.config/quickshell/ii/modules/background/Background.qml b/.config/quickshell/ii/modules/background/Background.qml index 2553a8772..cc9b28a1f 100644 --- a/.config/quickshell/ii/modules/background/Background.qml +++ b/.config/quickshell/ii/modules/background/Background.qml @@ -26,9 +26,10 @@ Variants { required property var modelData // Hide when fullscreen - readonly property var monitorHasFullscreen: ToplevelManager.toplevels.values.filter(window=>(window.screens[0].name == monitor.name) && window.fullscreen)[0] - - visible: !(monitorHasFullscreen != undefined) + property list workspacesForMonitor: Hyprland.workspaces.values.filter(workspace=>workspace.monitor && workspace.monitor.name == monitor.name) + property var activeWorkspaceWithFullscreen: workspacesForMonitor.filter(workspace=>((workspace.toplevels.values.filter(window=>window.wayland.fullscreen)[0] != undefined) && workspace.active))[0] + + visible: !(activeWorkspaceWithFullscreen != undefined) // Workspaces property HyprlandMonitor monitor: Hyprland.monitorFor(modelData)