diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-23 14:59:13 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-02-23 14:59:13 +1100 |
| commit | 9504e97ccf9e4df64da446ffa5ce070ef55b69f2 (patch) | |
| tree | a86b986e8bf8166b1d412906d3af9716075bcd0d /src/modules/notifpopups.tsx | |
| parent | bar: fix workspace module (diff) | |
| download | caelestia-shell-9504e97ccf9e4df64da446ffa5ce070ef55b69f2.tar.gz caelestia-shell-9504e97ccf9e4df64da446ffa5ce070ef55b69f2.tar.bz2 caelestia-shell-9504e97ccf9e4df64da446ffa5ce070ef55b69f2.zip | |
notifpopups: go to notif center on click
Diffstat (limited to 'src/modules/notifpopups.tsx')
| -rw-r--r-- | src/modules/notifpopups.tsx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/modules/notifpopups.tsx b/src/modules/notifpopups.tsx index 53217c0..c3f687a 100644 --- a/src/modules/notifpopups.tsx +++ b/src/modules/notifpopups.tsx @@ -30,8 +30,12 @@ export default () => ( self.add( <eventbox - // Dismiss on middle click - onClick={(_, event) => event.button === Astal.MouseButton.MIDDLE && notification.dismiss()} + onClick={(_, event) => { + // Go to notif center on primary click + if (event.button === Astal.MouseButton.PRIMARY) App.get_window("notifications")?.show(); + // Dismiss on middle click + else if (event.button === Astal.MouseButton.MIDDLE) notification.dismiss(); + }} // Close on hover lost onHoverLost={() => popup.destroyWithAnims()} > |