summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2014-09-21 03:37:03 -0400
committerTingPing <tingping@tingping.se>2014-09-21 03:37:03 -0400
commitecd1aa226ad4bbaab485ff9556e993cfdfac58df (patch)
tree600dd8eb58ba6172364727a44a2920ed9e756fea /src
parent760d18b6e7926c60ebe52dda3b2025000aa584d6 (diff)
Fix attempting to toggle visibility when tray disabled
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/maingui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index 5d65e66b..2d50a98c 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -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);