aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-status-icon.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy-gtk/empathy-status-icon.c')
-rw-r--r--libempathy-gtk/empathy-status-icon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-status-icon.c b/libempathy-gtk/empathy-status-icon.c
index 16a678dcd..204ff383b 100644
--- a/libempathy-gtk/empathy-status-icon.c
+++ b/libempathy-gtk/empathy-status-icon.c
@@ -248,7 +248,9 @@ empathy_status_icon_new (GtkWindow *window)
EMPATHY_PREFS_UI_MAIN_WINDOW_HIDDEN,
&should_hide);
- status_icon_set_visibility (icon, !should_hide);
+ if (gtk_window_is_active (priv->window) == should_hide) {
+ status_icon_set_visibility (icon, !should_hide);
+ }
return icon;
}