diff options
Diffstat (limited to 'gtk/window.c')
-rw-r--r-- | gtk/window.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/window.c b/gtk/window.c index 0a2c1aa02..82359adbf 100644 --- a/gtk/window.c +++ b/gtk/window.c @@ -992,12 +992,11 @@ static void gui_window_set_scroll(struct gui_window *g, int sx, int sy) static void gui_window_update_extent(struct gui_window *g) { - if (!browser_window_has_content(g->bw)) - return; + int w, h; - gtk_layout_set_size(g->layout, - content_get_width(g->bw->current_content) * g->bw->scale, - content_get_height(g->bw->current_content) * g->bw->scale); + if (browser_window_get_extents(g->bw, true, &w, &h) == NSERROR_OK) { + gtk_layout_set_size(g->layout, w, h); + } } static GdkCursor *nsgtk_create_menu_cursor(void) |