Fix attempting to toggle visibility when tray disabled

This commit is contained in:
TingPing 2014-09-21 03:37:03 -04:00
parent 760d18b6e7
commit ecd1aa226a
1 changed files with 2 additions and 1 deletions

View File

@ -441,7 +441,8 @@ mg_windowstate_cb (GtkWindow *wid, GdkEventWindowState *event, gpointer userdata
{
if ((event->changed_mask & GDK_WINDOW_STATE_ICONIFIED) &&
(event->new_window_state & GDK_WINDOW_STATE_ICONIFIED) &&
prefs.hex_gui_tray_minimize && !unity_mode ())
prefs.hex_gui_tray_minimize && prefs.hex_gui_tray &&
!unity_mode ())
{
tray_toggle_visibility (TRUE);
gtk_window_deiconify (wid);