From 607ed8fd2c916e91256885c4068c1f2152bcdcdc Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Wed, 30 Jul 2025 17:48:29 -0300 Subject: [PATCH] :wrench: chore(background-window): add onCloseRequest method --- ags/widget/BackgroundWindow.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ags/widget/BackgroundWindow.tsx b/ags/widget/BackgroundWindow.tsx index 88fcf05..74c3fdb 100644 --- a/ags/widget/BackgroundWindow.tsx +++ b/ags/widget/BackgroundWindow.tsx @@ -21,6 +21,7 @@ export type BackgroundWindowProps = { actionClickPrimary?: (window: Astal.Window) => void; /** Function that is called when the user clicks on the window with secodary mouse button */ actionClickSecondary?: (window: Astal.Window) => void; + onCloseRequest?: (window: Astal.Window) => void; keymode?: Astal.Keymode; exclusivity?: Astal.Exclusivity; @@ -42,7 +43,7 @@ export function BackgroundWindow(props: BackgroundWindowProps): Astal.Window { return { const gestureClick = Gtk.GestureClick.new(),