window: ignore resize increments for maximized/fullscreen

Once a window is maximized/fullscreen, resize increments should be
ignored otherwise the window may appear smaller than the screen size.

That also applies to configure requests as well.

https://bugzilla.gnome.org/show_bug.cgi?id=751368
This commit is contained in:
Olivier Fourdan 2015-10-01 15:46:50 +02:00
parent f0ba65687a
commit 42b02d9d01

View File

@ -8799,7 +8799,12 @@ gtk_window_compute_configure_request_size (GtkWindow *window,
}
/* Override any size with gtk_window_resize() values */
if (info)
if (priv->maximized || priv->fullscreen)
{
/* Unless we are maximized or fullscreen */
gtk_window_get_remembered_size (window, width, height);
}
else if (info)
{
if (info->resize_width > 0)
*width = info->resize_width;