notifpopups: go to notif center on click
This commit is contained in:
parent
46b8626f7d
commit
9504e97ccf
1 changed files with 6 additions and 2 deletions
|
|
@ -30,8 +30,12 @@ export default () => (
|
|||
|
||||
self.add(
|
||||
<eventbox
|
||||
onClick={(_, event) => {
|
||||
// Go to notif center on primary click
|
||||
if (event.button === Astal.MouseButton.PRIMARY) App.get_window("notifications")?.show();
|
||||
// Dismiss on middle click
|
||||
onClick={(_, event) => event.button === Astal.MouseButton.MIDDLE && notification.dismiss()}
|
||||
else if (event.button === Astal.MouseButton.MIDDLE) notification.dismiss();
|
||||
}}
|
||||
// Close on hover lost
|
||||
onHoverLost={() => popup.destroyWithAnims()}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue