From ecb4f83baa7097d38f2f29a740b9bc999357860c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 7 Jun 2004 12:15:36 +0000 Subject: [PATCH] Another interesting xmms "feature". CCMAIL: 79499-done@bugs.kde.org svn path=/trunk/kdebase/kwin/; revision=318449 --- geometry.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index ed8d5e6a5f..4e11b370e2 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1182,7 +1182,7 @@ void Client::getWmNormalHints() { xSizeHint.flags |= PMinSize; xSizeHint.min_width = xSizeHint.base_width; - xSizeHint.min_height = xSizeHint.base_height; + xSizeHint.min_height = xSizeHint.base_height; } } else @@ -1191,6 +1191,11 @@ void Client::getWmNormalHints() xSizeHint.min_width = xSizeHint.min_height = 0; if( ! ( xSizeHint.flags & PMaxSize )) xSizeHint.max_width = xSizeHint.max_height = INT_MAX; + else + { + xSizeHint.max_width = QMAX( xSizeHint.max_width, 1 ); + xSizeHint.max_height = QMAX( xSizeHint.max_height, 1 ); + } if( xSizeHint.flags & PResizeInc ) { xSizeHint.width_inc = kMax( xSizeHint.width_inc, 1 );