aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 75ee24a99..2d10dbedb 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2424,18 +2424,23 @@ web_view_ready_cb (WebKitWebView *web_view,
"menubar-visible", &menubar_visible,
NULL);
- gtk_window_set_default_size (GTK_WINDOW (window), width, height);
-
if (!toolbar_visible)
chrome_mask &= ~EPHY_WEB_VIEW_CHROME_TOOLBAR;
if (!menubar_visible)
chrome_mask &= ~EPHY_WEB_VIEW_CHROME_MENUBAR;
- window->priv->chrome = chrome_mask;
- update_chromes_actions (window);
- sync_chromes_visibility (window);
+ /* We will consider windows with different chrome settings popups. */
+ if (chrome_mask != window->priv->chrome) {
+ gtk_window_set_default_size (GTK_WINDOW (window), width, height);
+
+ window->priv->is_popup = TRUE;
+ window->priv->chrome = chrome_mask;
+
+ update_chromes_actions (window);
+ sync_chromes_visibility (window);
+ }
g_signal_emit_by_name (parent_web_view, "new-window", web_view);
}