From 944e93053709c06226699381cacf5d0785a88b6a Mon Sep 17 00:00:00 2001 From: kossLAN Date: Thu, 14 Aug 2025 00:24:49 -0400 Subject: [PATCH] fix: mask issues on popups --- shell/bar/Bar.qml | 7 ++++++- shell/bar/Popup.qml | 11 +++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/shell/bar/Bar.qml b/shell/bar/Bar.qml index 5782c55..85c220d 100644 --- a/shell/bar/Bar.qml +++ b/shell/bar/Bar.qml @@ -1,7 +1,7 @@ import QtQuick import QtQuick.Layouts import Quickshell -// import "power" +import "power" // import "volume" import "systray" // import qs.widgets @@ -55,6 +55,11 @@ Variants { } } + // PowerMenu { + // bar: root + // Layout.fillHeight: true + // } + // Right side of bar RowLayout { spacing: 10 diff --git a/shell/bar/Popup.qml b/shell/bar/Popup.qml index d960e9f..f8dada8 100644 --- a/shell/bar/Popup.qml +++ b/shell/bar/Popup.qml @@ -89,22 +89,21 @@ Scope { active: true windows: [popup, root.bar] onCleared: { - root.shownItem.closed(); + if (!active) { + root.shownItem.closed(); + } } } // HyprlandWindow.opacity: root.scaleMul - HyprlandWindow.visibleMask: Region { - id: mask - item: parentItem - } + HyprlandWindow.visibleMask: popup.mask Connections { target: root function onScaleMulChanged() { - mask.changed(); + popup.mask.changed(); } }