Skip to content

Commit 5ee7d8d

Browse files
committed
allow to close the notch with a right click on the menu
1 parent 52d1380 commit 5ee7d8d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/dashboard.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ def __init__(self, **kwargs):
8181
):
8282
GLib.idle_add(self._setup_switcher_icons)
8383

84+
# Close on right click if the event isn't handled
85+
self.connect(
86+
"button-release-event",
87+
lambda widget, event: (event.button == 3 and self.notch.close_notch()),
88+
)
8489
self.show_all()
8590

8691
def _setup_switcher_icons(self):

0 commit comments

Comments
 (0)