From e18e701f7f3b74650342518be51a524dfd8d8216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Sun, 15 Apr 2007 09:14:37 +0000 Subject: [PATCH] LMB activates, others cancel. svn path=/branches/work/kwin_composite/; revision=654154 --- effects/presentwindows.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/effects/presentwindows.cpp b/effects/presentwindows.cpp index aab9033a60..e7058ecaf7 100644 --- a/effects/presentwindows.cpp +++ b/effects/presentwindows.cpp @@ -44,7 +44,7 @@ PresentWindowsEffect::PresentWindowsEffect() b->setGlobalShortcut(KShortcut(Qt::CTRL + Qt::Key_F11)); connect(b, SIGNAL(triggered(bool)), this, SLOT(toggleActiveAllDesktops())); - borderActivate = ElectricTopRight; + borderActivate = ElectricTopRight; // TODO config options borderActivateAll = ElectricNone; effects->reserveElectricBorder( borderActivate ); @@ -164,6 +164,11 @@ void PresentWindowsEffect::windowInputMouseEvent( Window w, QEvent* e ) } if( e->type() != QEvent::MouseButtonPress ) return; + if( static_cast< QMouseEvent* >( e )->button() != Qt::LeftButton ) + { + setActive( false ); + return; + } // Find out which window (if any) was clicked and activate it QPoint pos = static_cast< QMouseEvent* >( e )->pos();