From 6da83babeea3908454622df25ad45e3defc7c432 Mon Sep 17 00:00:00 2001 From: nico Date: Mon, 27 Jul 2026 22:31:57 +0200 Subject: [PATCH] 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. --- quickshell/default/ClockWidget.qml | 3 +++ quickshell/default/PowerMenu.qml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/quickshell/default/ClockWidget.qml b/quickshell/default/ClockWidget.qml index 95fd35a..392a0f9 100644 --- a/quickshell/default/ClockWidget.qml +++ b/quickshell/default/ClockWidget.qml @@ -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() diff --git a/quickshell/default/PowerMenu.qml b/quickshell/default/PowerMenu.qml index 5017a91..c5e86b8 100644 --- a/quickshell/default/PowerMenu.qml +++ b/quickshell/default/PowerMenu.qml @@ -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 ]