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)
This commit is contained in:
Owen Taylor
1999-02-21 22:12:00 +00:00
committed by Owen Taylor
parent 039d738e3b
commit 16561707f8
9 changed files with 53 additions and 4 deletions

View File

@ -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)