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:
parent
7d38abca77
commit
406c89a8b2
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue