feat: add IdleState reference in Bar.qml to give it a valid Window to be able to inhibit idle

This commit is contained in:
Hannes
2026-08-24 23:38:44 +02:00
parent c77020dc69
commit 5b23111eb3
+6 -1
View File
@@ -2,6 +2,7 @@ import QtQuick
import Quickshell import Quickshell
import Quickshell.Hyprland import Quickshell.Hyprland
import "./widgets" import "./widgets"
import "./states/Idle"
import "../../config" import "../../config"
PanelWindow { PanelWindow {
@@ -25,6 +26,10 @@ PanelWindow {
right: 0 right: 0
} }
Component.onCompleted: {
IdleState.panelWindow = panel
}
Rectangle { // Bar Rectangle { // Bar
id: bar id: bar
anchors.fill: parent anchors.fill: parent
@@ -72,7 +77,7 @@ PanelWindow {
AudioSink{} AudioSink{}
Battery{} Battery{}
Network{} Network{}
IdleButton { panelWindow: panel } IdleButton {}
PowerButton{} PowerButton{}
} }