From 42b02d9d01cc7b3cf4282550e93bef8363408eea Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 1 Oct 2015 15:46:50 +0200 Subject: [PATCH] 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 --- gtk/gtkwindow.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 3a5adc8645..efde8423ca 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -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;