From 7ce5cea00dc8baa553fcdfd30500648539da33aa Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Tue, 26 Aug 2008 14:41:26 +0000 Subject: [PATCH] Allow clicking of windows when in window switching mode. svn path=/trunk/KDE/kdebase/workspace/; revision=852767 --- effects/presentwindows.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/effects/presentwindows.cpp b/effects/presentwindows.cpp index 672fe66be9..e0dca94bf5 100644 --- a/effects/presentwindows.cpp +++ b/effects/presentwindows.cpp @@ -249,8 +249,6 @@ void PresentWindowsEffect::postPaintScreen() void PresentWindowsEffect::windowInputMouseEvent( Window w, QEvent* e ) { - if( mTabBoxMode ) - return; assert( w == mInput ); if( e->type() == QEvent::MouseMove ) { // Repaint if the highlighted window changed. @@ -314,6 +312,11 @@ void PresentWindowsEffect::setActive(bool active) return; if( mActivated == active ) return; + if( mTabBoxMode && mActivated ) + { + effects->closeTabBox(); + return; + } mActivated = active; if( mActivated ) { @@ -1184,6 +1187,8 @@ void PresentWindowsEffect::setHighlightedWindow( EffectWindow* w ) return; effects->addRepaintFull(); // everything is transformed anyway mHighlightedWindow = w; + if( mTabBoxMode ) + effects->setTabBoxWindow( w ); } // returns a window which is to relative position from the given window