summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.c
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>1999-02-21 22:12:00 +0000
committerOwen Taylor <otaylor@src.gnome.org>1999-02-21 22:12:00 +0000
commit16561707f86dad929b64d5f25c0dd58f870eddad (patch)
treefbc9c414c8f646438085f745a485000c856bf9b7 /gdk/gdkwindow.c
parent039d738e3b8914bc075265a4c6d52168674563cd (diff)
downloadgtk+-16561707f86dad929b64d5f25c0dd58f870eddad.tar.gz
Always set the max width or height to at least 1, since 0 triggers bugs in
Sun Feb 21 17:14:44 1999 Owen Taylor <otaylor@redhat.com> * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always set the max width or height to at least 1, since 0 triggers bugs in some window managers. (The window "pops out" of the frame in fvwm)
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r--gdk/gdkwindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 32ced4397e..65eaa77971 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -1115,8 +1115,8 @@ gdk_window_set_geometry_hints (GdkWindow *window,
if (geom_mask & GDK_HINT_MAX_SIZE)
{
size_hints.flags |= PMaxSize;
- size_hints.max_width = geometry->max_width;
- size_hints.max_height = geometry->max_height;
+ size_hints.max_width = MAX (geometry->max_width, 1);
+ size_hints.max_height = MAX (geometry->max_height, 1);
}
if (geom_mask & GDK_HINT_BASE_SIZE)