removed support for obsolete size hints
svn path=/trunk/kdebase/kwin/; revision=35475
This commit is contained in:
parent
df37b4f6f3
commit
de3d008e6d
1 changed files with 3 additions and 8 deletions
|
@ -346,10 +346,7 @@ void Client::manage( bool isMapped )
|
|||
placementDone = TRUE;
|
||||
}
|
||||
if ( (xSizeHint.flags & USSize) || (xSizeHint.flags & PSize) ) {
|
||||
if ( xSizeHint.width != 0 )
|
||||
geom.setWidth( xSizeHint.width );
|
||||
if ( xSizeHint.height != 0 )
|
||||
geom.setHeight( xSizeHint.height );
|
||||
// keep in mind that we now actually have a size :-)
|
||||
}
|
||||
if (xSizeHint.flags & PMaxSize)
|
||||
geom.setSize( geom.size().boundedTo( QSize(xSizeHint.max_width, xSizeHint.max_height ) ) );
|
||||
|
@ -360,8 +357,6 @@ void Client::manage( bool isMapped )
|
|||
windowWrapper()->resize( geom.size() );
|
||||
// the clever activate() trick is necessary
|
||||
layout()->activate();
|
||||
// resize( geom.width() + width() - windowWrapper()->width(),
|
||||
// geom.height() + height() - windowWrapper()->height() );
|
||||
resize ( sizeForWindowSize( geom.size() ) );
|
||||
layout()->activate();
|
||||
|
||||
|
|
Loading…
Reference in a new issue