removed support for obsolete size hints

svn path=/trunk/kdebase/kwin/; revision=35475
This commit is contained in:
Matthias Ettrich 1999-11-30 00:29:34 +00:00
parent df37b4f6f3
commit de3d008e6d

View file

@ -345,12 +345,9 @@ void Client::manage( bool isMapped )
geom.setRect( geom.x(), xSizeHint.y, geom.width(), geom.height() ); geom.setRect( geom.x(), xSizeHint.y, geom.width(), geom.height() );
placementDone = TRUE; placementDone = TRUE;
} }
if ( (xSizeHint.flags & USSize) || (xSizeHint.flags & PSize) ) { if ( (xSizeHint.flags & USSize) || (xSizeHint.flags & PSize) ) {
if ( xSizeHint.width != 0 ) // keep in mind that we now actually have a size :-)
geom.setWidth( xSizeHint.width ); }
if ( xSizeHint.height != 0 )
geom.setHeight( xSizeHint.height );
}
if (xSizeHint.flags & PMaxSize) if (xSizeHint.flags & PMaxSize)
geom.setSize( geom.size().boundedTo( QSize(xSizeHint.max_width, xSizeHint.max_height ) ) ); geom.setSize( geom.size().boundedTo( QSize(xSizeHint.max_width, xSizeHint.max_height ) ) );
if (xSizeHint.flags & PMinSize) if (xSizeHint.flags & PMinSize)
@ -360,8 +357,6 @@ void Client::manage( bool isMapped )
windowWrapper()->resize( geom.size() ); windowWrapper()->resize( geom.size() );
// the clever activate() trick is necessary // the clever activate() trick is necessary
layout()->activate(); layout()->activate();
// resize( geom.width() + width() - windowWrapper()->width(),
// geom.height() + height() - windowWrapper()->height() );
resize ( sizeForWindowSize( geom.size() ) ); resize ( sizeForWindowSize( geom.size() ) );
layout()->activate(); layout()->activate();