WABA: Activate client on mouse-release...

You can now move a window without activating it
let's see how many people will get upset about this >:-)

svn path=/trunk/kdebase/kwin/; revision=51361
This commit is contained in:
Waldo Bastian 2000-05-31 19:13:14 +00:00
parent 9946d82ee1
commit d914752cac

View file

@ -885,9 +885,6 @@ QSize Client::sizeForWindowSize( const QSize& wsize, bool ignore_height) const
void Client::mousePressEvent( QMouseEvent * e)
{
if ( e->button() == LeftButton ) {
if ( options->focusPolicyIsReasonable() )
workspace()->requestFocus( this );
workspace()->raiseClient( this );
mouseMoveEvent( e );
buttonDown = TRUE;
moveOffset = e->pos();
@ -907,6 +904,11 @@ void Client::mousePressEvent( QMouseEvent * e)
void Client::mouseReleaseEvent( QMouseEvent * e)
{
if ( (e->stateAfter() & MouseButtonMask) == 0 ) {
if (buttonDown && !moveResizeMode) {
if ( options->focusPolicyIsReasonable() )
workspace()->requestFocus( this );
workspace()->raiseClient( this );
}
buttonDown = FALSE;
if ( moveResizeMode ) {
clearbound();