diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index e7e5f85..dd87236 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -1453,8 +1453,8 @@ chat_window_detach_hook (GtkNotebook *source,
 
 	empathy_chat_window_move_chat (window, new_window, chat);
 
-	gtk_window_move (GTK_WINDOW (priv->dialog), x, y);
 	gtk_widget_show (priv->dialog);
+	gtk_window_move (GTK_WINDOW (priv->dialog), x, y);
 
 	return NULL;
 }
