Commentting out evil maximize behavior ;-)
svn path=/trunk/kdebase/kwin/; revision=82564icc-effect-5.14.5
parent
842ed08937
commit
1bc44d136d
16
client.cpp
16
client.cpp
|
@ -711,6 +711,7 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
|
|||
else if ( info->state() & NET::MaxHoriz )
|
||||
maximize( Client::MaximizeHorizontal );
|
||||
|
||||
/*
|
||||
if ( isMaximizable() && !isMaximized()
|
||||
&& ( width() >= area.width() || height() >= area.height() ) ) {
|
||||
// window is too large for the screen, maximize in the
|
||||
|
@ -730,7 +731,7 @@ bool Client::manage( bool isMapped, bool doNotShow, bool isInitial )
|
|||
geom_restore.setHeight( s.height() );
|
||||
geom_restore.moveCenter( geometry().center() );
|
||||
}
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
delete session;
|
||||
|
@ -1071,18 +1072,7 @@ bool Client::configureRequest( XConfigureRequestEvent& e )
|
|||
QSize ns = sizeForWindowSize( QSize( nw, nh ) );
|
||||
|
||||
QRect area = workspace()->clientArea();
|
||||
if ( isMaximizable() && !isMaximized()
|
||||
&& ( ns.width() >= area.width() || ns.height() >= area.height() ) ) {
|
||||
// window is too large for the screen, maximize in the
|
||||
// directions necessary
|
||||
if ( ns.width() >= area.width() && ns.height() >= area.height() ) {
|
||||
maximize( Client::MaximizeFull );
|
||||
} else if ( ns.width() >= area.width() ) {
|
||||
maximize( Client::MaximizeHorizontal );
|
||||
} else if ( ns.height() >= area.height() ) {
|
||||
maximize( Client::MaximizeVertical );
|
||||
}
|
||||
} else if ( isMaximizable() && isMaximized()
|
||||
if ( isMaximizable() && isMaximized()
|
||||
&& ( ns.width() < area.width() || ns.height() < area.height() ) ) {
|
||||
geom_restore.setSize( ns );
|
||||
maximize( Client::MaximizeRestore );
|
||||
|
|
Loading…
Reference in New Issue