Fix hiding background when fullscreen (#1775)

This commit is contained in:
end-4
2025-08-08 10:35:55 +07:00
committed by GitHub
@@ -26,9 +26,9 @@ Variants {
required property var modelData required property var modelData
// Hide when fullscreen // Hide when fullscreen
readonly property Toplevel activeWindow: ToplevelManager.activeToplevel property list<HyprlandWorkspace> workspacesForMonitor: Hyprland.workspaces.values.filter(workspace=>workspace.monitor && workspace.monitor.name == monitor.name)
property bool focusingThisMonitor: HyprlandData.activeWorkspace?.monitor == monitor?.name property var activeWorkspaceWithFullscreen: workspacesForMonitor.filter(workspace=>((workspace.toplevels.values.filter(window=>window.wayland.fullscreen)[0] != undefined) && workspace.active))[0]
visible: !(activeWindow?.fullscreen && activeWindow?.activated && focusingThisMonitor) visible: !(activeWorkspaceWithFullscreen != undefined)
// Workspaces // Workspaces
property HyprlandMonitor monitor: Hyprland.monitorFor(modelData) property HyprlandMonitor monitor: Hyprland.monitorFor(modelData)