From 5b23111eb38d455c9b77530e1ca011777543d377 Mon Sep 17 00:00:00 2001 From: Hannes Date: Mon, 24 Aug 2026 23:38:44 +0200 Subject: [PATCH] feat: add IdleState reference in Bar.qml to give it a valid Window to be able to inhibit idle --- modules/bar/Bar.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 93fd216..7293e3f 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -2,6 +2,7 @@ import QtQuick import Quickshell import Quickshell.Hyprland import "./widgets" +import "./states/Idle" import "../../config" PanelWindow { @@ -25,6 +26,10 @@ PanelWindow { right: 0 } + Component.onCompleted: { + IdleState.panelWindow = panel + } + Rectangle { // Bar id: bar anchors.fill: parent @@ -72,7 +77,7 @@ PanelWindow { AudioSink{} Battery{} Network{} - IdleButton { panelWindow: panel } + IdleButton {} PowerButton{} }