From ab9c4c5d9b20e0d32fcd2d09ac955712f3fb5a35 Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Mon, 21 Aug 2000 19:09:23 +0000 Subject: [PATCH] fixed sizeInc problem with the gimp svn path=/trunk/kdebase/kwin/; revision=61626 --- client.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index 7efc02ed43..9aecd6d644 100644 --- a/client.cpp +++ b/client.cpp @@ -489,7 +489,7 @@ bool Client::manage( bool isMapped, bool doNotShow ) geom.setRect( session->x, session->y, session->width, session->height ); QRect area = workspace()->clientArea(); - + if ( isMapped || session || isTransient() ) { placementDone = TRUE; if ( geom == workspace()->geometry() ) @@ -528,7 +528,7 @@ bool Client::manage( bool isMapped, bool doNotShow ) move( geom.x(), geom.y() ); gravitate( FALSE ); - + if ( !placementDone ) { workspace()->doPlacement( this ); placementDone = TRUE; @@ -1059,6 +1059,13 @@ QSize Client::sizeForWindowSize( const QSize& wsize, bool ignore_height) const w = xSizeHint.base_width; if (h < xSizeHint.base_height) h = xSizeHint.base_height; + } else if ( xSizeHint.flags & PMinSize ) { + bw = xSizeHint.min_width; + bh = xSizeHint.min_height; + if (w < xSizeHint.min_width) + w = xSizeHint.min_width; + if (h < xSizeHint.min_height) + h = xSizeHint.min_height; } if (xSizeHint.flags & PResizeInc) {