Partially revert r1.333 and generate suitable maximize restore geometry
and position again. svn path=/trunk/kdebase/kwin/; revision=198015
This commit is contained in:
parent
235b534b26
commit
eca86b5a53
1 changed files with 5 additions and 1 deletions
|
@ -853,8 +853,12 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
|
|||
// window is too large for the screen, maximize in the
|
||||
// directions necessary and generate a suitable restore
|
||||
// geometry.
|
||||
QSize s = adjustedSize( area.size());
|
||||
QSize s = adjustedSize( QSize( area.width()*2/3, area.height()*2/3 ));
|
||||
QPoint orig_pos( x(), y());
|
||||
if( orig_pos.x() + s.width() > area.right())
|
||||
orig_pos.setX( area.right() - s.width() + 1 );
|
||||
if( orig_pos.y() + s.height() > area.bottom())
|
||||
orig_pos.setY( area.bottom() - s.height() + 1 );
|
||||
if ( width() >= area.width() && height() >= area.height() ) {
|
||||
maximize( Client::MaximizeFull );
|
||||
geom_restore.setSize( s );
|
||||
|
|
Loading…
Reference in a new issue