From a53389c8b5c1f4599c30a6c3de523e0a1388f9d1 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Tue, 14 Jan 2025 23:56:07 +1100
Subject: bar: power button works

Use wlogout for power menu
Add more defaults for PopupWindow
---
 utils/widgets.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'utils/widgets.tsx')

diff --git a/utils/widgets.tsx b/utils/widgets.tsx
index 57c08cb..033a4e2 100644
--- a/utils/widgets.tsx
+++ b/utils/widgets.tsx
@@ -100,6 +100,8 @@ export class PopupWindow extends Widget.Window {
         sProps.namespace = `caelestia-${props.name}`;
         sProps.anchor =
             Astal.WindowAnchor.TOP | Astal.WindowAnchor.LEFT | Astal.WindowAnchor.BOTTOM | Astal.WindowAnchor.RIGHT;
+        sProps.exclusivity = Astal.Exclusivity.IGNORE;
+        if (!sProps.keymode) sProps.keymode = Astal.Keymode.ON_DEMAND;
         sProps.onKeyPressEvent = (self, event) => {
             // Close window on escape
             if (event.get_keyval()[1] === Gdk.KEY_Escape) self.hide();
-- 
cgit v1.2.3-freya

