From 7d509169396be6e0214b3e10c606dc4d01dc6d8f Mon Sep 17 00:00:00 2001 From: Cristian Tibirna Date: Thu, 28 Feb 2002 22:08:07 +0000 Subject: [PATCH] CT: fix moving with all mouse buttons for ClickToFocus svn path=/trunk/kdebase/kwin/; revision=139639 --- client.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client.cpp b/client.cpp index 4fc743bb84..412a1aa584 100644 --- a/client.cpp +++ b/client.cpp @@ -1433,8 +1433,7 @@ void Client::mousePressEvent( QMouseEvent * e) if ( !wantsInput() ) // we cannot be active, use it anyway active = TRUE; - if (active && - (e->button() == LeftButton && options->commandActiveTitlebar1() != Options::MouseOperationsMenu) || + if ((e->button() == LeftButton && options->commandActiveTitlebar1() != Options::MouseOperationsMenu) || (e->button() == MidButton && options->commandActiveTitlebar2() != Options::MouseOperationsMenu) || (e->button() == RightButton && options->commandActiveTitlebar3() != Options::MouseOperationsMenu) ) { mouseMoveEvent( e ); @@ -2098,8 +2097,8 @@ bool Client::x11Event( XEvent * e) autoRaiseTimer = 0; delete shadeHoverTimer; shadeHoverTimer = 0; - if ( hover_unshade ) - setShade( TRUE, 1 ); + if ( hover_unshade ) + setShade( TRUE, 1 ); } if ( options->focusPolicy == Options::FocusStrictlyUnderMouse ) if ( isActive() && lostMouse )