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:
parent
9946d82ee1
commit
d914752cac
1 changed files with 5 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue