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(
|
self.add(
|
||||||
<eventbox
|
<eventbox
|
||||||
// Dismiss on middle click
|
onClick={(_, event) => {
|
||||||
onClick={(_, event) => event.button === Astal.MouseButton.MIDDLE && notification.dismiss()}
|
// 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
|
// Close on hover lost
|
||||||
onHoverLost={() => popup.destroyWithAnims()}
|
onHoverLost={() => popup.destroyWithAnims()}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue