From 406c89a8b2a6966cf9a82106869321cde9ff5f9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 15 Feb 2006 09:53:06 +0000 Subject: [PATCH] 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 --- geometry.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index a88565796c..52e0300837 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -1208,6 +1208,8 @@ void Client::getWmNormalHints() xSizeHint.flags = 0; // 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 ) { // PBaseSize is a fallback for PMinSize according to ICCCM 4.1.2.3 @@ -1221,8 +1223,6 @@ void Client::getWmNormalHints() } else xSizeHint.base_width = xSizeHint.base_height = 0; - if( ! ( xSizeHint.flags & PMinSize )) - xSizeHint.min_width = xSizeHint.min_height = 0; if( ! ( xSizeHint.flags & PMaxSize )) xSizeHint.max_width = xSizeHint.max_height = INT_MAX; else