diff options
Diffstat (limited to 'gtk/window.c')
-rw-r--r-- | gtk/window.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/window.c b/gtk/window.c index 1e9796ebb..0a2c1aa02 100644 --- a/gtk/window.c +++ b/gtk/window.c @@ -945,7 +945,7 @@ static void gui_window_update_box(struct gui_window *g, const struct rect *rect) { int sx, sy; - if (g->bw->current_content == NULL) + if (!browser_window_has_content(g->bw)) return; gui_window_get_scroll(g, &sx, &sy); @@ -992,7 +992,7 @@ 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 (!g->bw->current_content) + if (!browser_window_has_content(g->bw)) return; gtk_layout_set_size(g->layout, |