Fix setting of minsize used in Client::sizeForClientSize()

if base size is set and minsize is not (#121968).


svn path=/trunk/KDE/kdebase/workspace/; revision=509609
This commit is contained in:
Luboš Luňák 2006-02-15 09:53:06 +00:00
parent 7d38abca77
commit 406c89a8b2

View file

@ -1208,6 +1208,8 @@ void Client::getWmNormalHints()
xSizeHint.flags = 0; xSizeHint.flags = 0;
// set defined values for the fields, even if they're not in flags // set defined values for the fields, even if they're not in flags
if( ! ( xSizeHint.flags & PMinSize ))
xSizeHint.min_width = xSizeHint.min_height = 0;
if( xSizeHint.flags & PBaseSize ) if( xSizeHint.flags & PBaseSize )
{ {
// PBaseSize is a fallback for PMinSize according to ICCCM 4.1.2.3 // PBaseSize is a fallback for PMinSize according to ICCCM 4.1.2.3
@ -1221,8 +1223,6 @@ void Client::getWmNormalHints()
} }
else else
xSizeHint.base_width = xSizeHint.base_height = 0; xSizeHint.base_width = xSizeHint.base_height = 0;
if( ! ( xSizeHint.flags & PMinSize ))
xSizeHint.min_width = xSizeHint.min_height = 0;
if( ! ( xSizeHint.flags & PMaxSize )) if( ! ( xSizeHint.flags & PMaxSize ))
xSizeHint.max_width = xSizeHint.max_height = INT_MAX; xSizeHint.max_width = xSizeHint.max_height = INT_MAX;
else else