💥 ags(notifications): unfocus notifications window when notificaiton is removed

This commit is contained in:
retrozinndev
2025-03-22 08:44:50 -03:00
parent 9bca6de71e
commit d42642d685
+1
View File
@@ -22,6 +22,7 @@ export const FloatingNotifications: Widget.Window = new Widget.Window({
}),
Notifications.getDefault().connect("notification-removed", (_: Notifications, _id: number) => {
window.is_visible() && _.notifications.length === 0 && window.hide()
window.isFocus = false;
})
);
},