Skip to content
Snippets Groups Projects
Commit 9dc8b315 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

[maxima] show and hide properly when left-clicking very fast on systray. Fixes #2388

parent 05f762fc
No related branches found
No related tags found
No related merge requests found
......@@ -275,7 +275,7 @@ class Systray:
def on_clicked(self, widget, event):
self.on_tray_leave_notify_event(widget, None)
if event.button == 1: # Left click
if event.type == gtk.gdk.BUTTON_PRESS and event.button == 1: # Left click
self.on_left_click()
elif event.button == 2: # middle click
self.on_middle_click()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment