notifpopups: close all popups when notifs open

This commit is contained in:
2 * r + 2 * t 2025-02-22 20:19:57 +11:00
parent cf55e26133
commit f561b77ee3

View file

@ -46,7 +46,10 @@ export default () => (
self.hook(notifd, "resolved", (_, id) => map.get(id)?.destroyWithAnims());
self.hook(App, "window-toggled", (_, window) => {
if (window.name === "notifications") notifsOpen = window.visible;
if (window.name === "notifications") {
notifsOpen = window.visible;
map.forEach(n => n.destroyWithAnims());
}
});
// Change input region to child region so can click through empty space