diff options
author | waker <wakeroid@gmail.com> | 2011-04-18 21:35:44 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-18 21:35:44 +0200 |
commit | 37788320ca794744eb0e382b5bd95bf6c4241c9f (patch) | |
tree | 31c0016bd3185e0f66bd908a029da61f909e90fc | |
parent | d72d9ff569b7493b770c1f26662a4b5d30f7fa70 (diff) |
fixed tray icon double clicking bug
-rw-r--r-- | plugins/gtkui/gtkui.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c index 7e3a0ee0..eaf08861 100644 --- a/plugins/gtkui/gtkui.c +++ b/plugins/gtkui/gtkui.c @@ -299,7 +299,9 @@ on_trayicon_activate (GtkWidget *widget, GdkEvent *event, gpointer user_data) { - mainwin_toggle_visible (); + if (event->type == GDK_BUTTON_PRESS) { + mainwin_toggle_visible (); + } return FALSE; } @@ -310,7 +312,7 @@ on_trayicon_button_press_event (GtkWidget *widget, GdkEventButton *event, gpointer user_data) { - if (event->button == 1) { + if (event->button == 1 && event->type == GDK_BUTTON_PRESS) { mainwin_toggle_visible (); } else if (event->button == 2) { |