From 9bbb2ca3c9e281d6961f6cb8a8a0d60751c695c4 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Wed, 15 Jan 2025 21:27:47 +1100
Subject: popupwindow: fix shadow

---
 utils/widgets.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'utils/widgets.tsx')

diff --git a/utils/widgets.tsx b/utils/widgets.tsx
index 4257060..7fddd04 100644
--- a/utils/widgets.tsx
+++ b/utils/widgets.tsx
@@ -52,7 +52,6 @@ const overrideProp = <T,>(
     override: (prop: T | undefined) => T | undefined
 ) => prop && (prop instanceof Binding ? prop.as(override) : override(prop));
 
-// TODO: fix shadow by putting child in a box with padding, also add shadow to .popup
 export const convertPopupWindowProps = (props: Widget.WindowProps): Widget.WindowProps => ({
     keymode: Astal.Keymode.ON_DEMAND,
     exclusivity: Astal.Exclusivity.IGNORE,
@@ -74,6 +73,7 @@ export const convertPopupWindowProps = (props: Widget.WindowProps): Widget.Windo
         self.connect("notify::visible", () => self.toggleClassName("visible", self.visible));
         props.setup?.(self);
     },
+    borderWidth: 20, // To allow shadow, cause if not it gets cut off
 });
 
 export const PopupWindow = (props: Widget.WindowProps) => <window {...convertPopupWindowProps(props)} />;
-- 
cgit v1.2.3-freya

