aboutsummaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-15 14:40:10 +0200
committerDanilo M. <danix@danix.xyz>2026-09-15 14:40:10 +0200
commit51070241dd0486cb9b69e173586cd32324d9d3a5 (patch)
tree7978b9d507b6f2903317d22bb8e17e7b416a5667 /desktop
parentbf4b1ec622122a713f975731839f430756823202 (diff)
downloadquickshell-51070241dd0486cb9b69e173586cd32324d9d3a5.tar.gz
quickshell-51070241dd0486cb9b69e173586cd32324d9d3a5.zip
fix(desktop): publish the drawer flag at startup
onOpenChanged does not fire for the initial value, so a restart while the drawer was open left notifyd/drawer at "1" and every balloon stayed suppressed until a drawer open/close cycle. Write the starting state from Component.onCompleted so the file always reflects the drawer.
Diffstat (limited to 'desktop')
-rw-r--r--desktop/Drawer.qml5
1 files changed, 5 insertions, 0 deletions
diff --git a/desktop/Drawer.qml b/desktop/Drawer.qml
index 79a5393..3a862ba 100644
--- a/desktop/Drawer.qml
+++ b/desktop/Drawer.qml
@@ -44,6 +44,11 @@ Scope {
onOpenChanged: drawerFlag.setText(root.open ? "1\n" : "0\n")
+ // onOpenChanged does not fire for the initial value, so a restart while
+ // the drawer was open would leave the flag stale and suppress every
+ // balloon. Publish the starting state explicitly.
+ Component.onCompleted: drawerFlag.setText(root.open ? "1\n" : "0\n")
+
readonly property var screenObj:
Quickshell.screens.find(s => s.name === root.monitor) ?? Quickshell.screens[0]