Force Quickshell widgets onto the overlay layer above Waybar

Waybar and Quickshell both autostart via exec-once, racing to create their
layer-shell surfaces. When Waybar's (transparent) bar surface ended up
stacked above the power button/clock widget on the same "top" layer, it
silently ate their clicks after a fresh login even though the buttons were
still visible. Pinning every Quickshell window to the overlay layer makes
the stacking order deterministic regardless of startup order.
This commit is contained in:
nico
2026-07-27 22:31:57 +02:00
parent b542377891
commit 6da83babee
2 changed files with 5 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ Variants {
exclusionMode: ExclusionMode.Ignore
color: "transparent"
WlrLayershell.namespace: "clock-widget"
WlrLayershell.layer: WlrLayer.Overlay
property bool calendarOpen: false
property bool hovering: false
@@ -113,6 +114,7 @@ Variants {
implicitHeight: tooltipCol.implicitHeight + 20
color: "transparent"
WlrLayershell.namespace: "clock-tooltip"
WlrLayershell.layer: WlrLayer.Overlay
Rectangle {
anchors.fill: parent
@@ -163,6 +165,7 @@ Variants {
implicitHeight: calCol.implicitHeight + 20
color: "transparent"
WlrLayershell.namespace: "clock-calendar"
WlrLayershell.layer: WlrLayer.Overlay
property int viewYear: panel.now.getFullYear()
property int viewMonth: panel.now.getMonth()

View File

@@ -26,6 +26,7 @@ Variants {
exclusionMode: ExclusionMode.Ignore
color: "transparent"
WlrLayershell.namespace: "power-button"
WlrLayershell.layer: WlrLayer.Overlay
property bool menuOpen: false
@@ -76,6 +77,7 @@ Variants {
implicitHeight: col.implicitHeight + 16
color: "transparent"
WlrLayershell.namespace: "power-menu"
WlrLayershell.layer: WlrLayer.Overlay
HyprlandFocusGrab {
windows: [ menu ]