[gtk+] window: ignore resize increments for maximized/fullscreen
- From: Olivier Fourdan <ofourdan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] window: ignore resize increments for maximized/fullscreen
- Date: Thu, 1 Oct 2015 14:37:04 +0000 (UTC)
commit 42b02d9d01cc7b3cf4282550e93bef8363408eea
Author: Olivier Fourdan <ofourdan redhat com>
Date: Thu Oct 1 15:46:50 2015 +0200
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 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 3a5adc8..efde842 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]