Commit 7d011c71 authored by Paolo Bacchilega's avatar Paolo Bacchilega
Browse files

do not save the size if the window is maximized

parent 6a5db65c
......@@ -2195,8 +2195,13 @@ _gth_browser_real_set_current_page (GthWindow *window,
_gth_browser_hide_infobar (browser);
if (prev_page >= 0) {
gtk_window_get_size (GTK_WINDOW (window), &width, &height);
gth_window_save_page_size (GTH_WINDOW (window), prev_page, width, height);
GdkWindowState state;
state = gdk_window_get_state (gtk_widget_get_window (GTK_WIDGET (browser)));
if ((state & GDK_WINDOW_STATE_MAXIMIZED) == 0) { /* ! maximized */
gtk_window_get_size (GTK_WINDOW (window), &width, &height);
gth_window_save_page_size (GTH_WINDOW (window), prev_page, width, height);
}
}
gth_window_apply_saved_size (GTH_WINDOW (window), page);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment