fix: mask issues on popups

This commit is contained in:
kossLAN 2025-08-14 00:24:49 -04:00
parent ec04d07e24
commit 944e930537
Signed by: kossLAN
SSH key fingerprint: SHA256:bdV0x+wdQHGJ6LgmstH3KV8OpWY+OOFmJcPcB0wQPV8
2 changed files with 11 additions and 7 deletions

View file

@ -1,7 +1,7 @@
import QtQuick import QtQuick
import QtQuick.Layouts import QtQuick.Layouts
import Quickshell import Quickshell
// import "power" import "power"
// import "volume" // import "volume"
import "systray" import "systray"
// import qs.widgets // import qs.widgets
@ -55,6 +55,11 @@ Variants {
} }
} }
// PowerMenu {
// bar: root
// Layout.fillHeight: true
// }
// Right side of bar // Right side of bar
RowLayout { RowLayout {
spacing: 10 spacing: 10

View file

@ -89,22 +89,21 @@ Scope {
active: true active: true
windows: [popup, root.bar] windows: [popup, root.bar]
onCleared: { onCleared: {
root.shownItem.closed(); if (!active) {
root.shownItem.closed();
}
} }
} }
// HyprlandWindow.opacity: root.scaleMul // HyprlandWindow.opacity: root.scaleMul
HyprlandWindow.visibleMask: Region { HyprlandWindow.visibleMask: popup.mask
id: mask
item: parentItem
}
Connections { Connections {
target: root target: root
function onScaleMulChanged() { function onScaleMulChanged() {
mask.changed(); popup.mask.changed();
} }
} }