diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 20:19:57 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-22 20:19:57 +1100 |
| commit | f561b77ee375b08b1050d3bb53106193e0bd9cdf (patch) | |
| tree | b9c624d1954dc9ee7e5ab899e125c9a9d9ab1878 /src/modules/notifpopups.tsx | |
| parent | config: use config file (diff) | |
| download | caelestia-shell-f561b77ee375b08b1050d3bb53106193e0bd9cdf.tar.gz caelestia-shell-f561b77ee375b08b1050d3bb53106193e0bd9cdf.tar.bz2 caelestia-shell-f561b77ee375b08b1050d3bb53106193e0bd9cdf.zip | |
notifpopups: close all popups when notifs open
Diffstat (limited to 'src/modules/notifpopups.tsx')
| -rw-r--r-- | src/modules/notifpopups.tsx | 5 |
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 |