summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-22 20:19:57 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-02-22 20:19:57 +1100
commitf561b77ee375b08b1050d3bb53106193e0bd9cdf (patch)
treeb9c624d1954dc9ee7e5ab899e125c9a9d9ab1878 /src
parentconfig: use config file (diff)
downloadcaelestia-shell-f561b77ee375b08b1050d3bb53106193e0bd9cdf.tar.gz
caelestia-shell-f561b77ee375b08b1050d3bb53106193e0bd9cdf.tar.bz2
caelestia-shell-f561b77ee375b08b1050d3bb53106193e0bd9cdf.zip
notifpopups: close all popups when notifs open
Diffstat (limited to 'src')
-rw-r--r--src/modules/notifpopups.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/notifpopups.tsx b/src/modules/notifpopups.tsx
index f1ae9b6..53217c0 100644
--- a/src/modules/notifpopups.tsx
+++ b/src/modules/notifpopups.tsx
@@ -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