aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-session.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ephy-session.c')
-rw-r--r--src/ephy-session.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ephy-session.c b/src/ephy-session.c
index 50b9a1685..1b7a5ef21 100644
--- a/src/ephy-session.c
+++ b/src/ephy-session.c
@@ -956,16 +956,20 @@ ephy_session_remove_window (EphySession *session,
EphyWindow *
ephy_session_get_active_window (EphySession *session)
{
- EphyWindow *window = NULL;
+ EphyWindow *window = NULL, *w;
GList *l;
g_return_val_if_fail (EPHY_IS_SESSION (session), NULL);
for (l = session->priv->windows; l != NULL; l = l->next)
{
- window = EPHY_WINDOW (l->data);
+ w = EPHY_WINDOW (l->data);
- if (ephy_window_get_is_popup (window) == FALSE) break;
+ if (ephy_window_get_is_popup (w) == FALSE)
+ {
+ window = w;
+ break;
+ }
}
return window;