fix tray menu transparent at wrong location

This commit is contained in:
Damocles 2026-04-12 14:28:47 +02:00
parent 1886f27268
commit 09d901bf5a

View file

@ -23,8 +23,7 @@ PanelWindow {
color: "transparent" color: "transparent"
WlrLayershell.layer: WlrLayer.Overlay WlrLayershell.layer: WlrLayer.Overlay
// -1 = ignore exclusive zones so this covers the full screen including the bar WlrLayershell.exclusiveZone: 0
WlrLayershell.exclusiveZone: -1
WlrLayershell.namespace: "nova-traymenu" WlrLayershell.namespace: "nova-traymenu"
anchors.top: true anchors.top: true
@ -46,7 +45,7 @@ PanelWindow {
Math.round(menuWindow.anchorX - menuStack.width / 2), Math.round(menuWindow.anchorX - menuStack.width / 2),
menuWindow.width - menuStack.width menuWindow.width - menuStack.width
)) ))
y: M.Theme.barHeight y: 0
width: menuStack.width width: menuStack.width
height: menuStack.height height: menuStack.height
@ -59,7 +58,7 @@ PanelWindow {
Rectangle { Rectangle {
anchors.fill: parent anchors.fill: parent
color: M.Theme.base01 color: M.Theme.base01
opacity: M.Theme.barOpacity opacity: Math.max(M.Theme.barOpacity, 0.85)
topLeftRadius: 0 topLeftRadius: 0
topRightRadius: 0 topRightRadius: 0
bottomLeftRadius: M.Theme.radius bottomLeftRadius: M.Theme.radius