💥 ags(notifications): unfocus notifications window when notificaiton is removed
This commit is contained in:
@@ -22,6 +22,7 @@ export const FloatingNotifications: Widget.Window = new Widget.Window({
|
|||||||
}),
|
}),
|
||||||
Notifications.getDefault().connect("notification-removed", (_: Notifications, _id: number) => {
|
Notifications.getDefault().connect("notification-removed", (_: Notifications, _id: number) => {
|
||||||
window.is_visible() && _.notifications.length === 0 && window.hide()
|
window.is_visible() && _.notifications.length === 0 && window.hide()
|
||||||
|
window.isFocus = false;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user