Commit 42b02d9d authored by Olivier Fourdan's avatar Olivier Fourdan

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
parent f0ba6568
......@@ -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;
......
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