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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-status-icon.c b/libempathy-gtk/empathy-status-icon.c
index 6cd0f5f90..654cbd50d 100644
--- a/libempathy-gtk/empathy-status-icon.c
+++ b/libempathy-gtk/empathy-status-icon.c
@@ -387,7 +387,7 @@ status_icon_toggle_visibility (EmpathyStatusIcon *icon)
priv = GET_PRIV (icon);
- visible = empathy_window_get_is_visible (GTK_WINDOW (priv->window));
+ visible = gtk_window_has_toplevel_focus (GTK_WINDOW (priv->window));
if (visible) {
empathy_window_iconify (priv->window, priv->icon);