From 4bf13f6f8fb853cefd3541f0154d33257dbeba04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 19 Apr 2004 09:29:53 +0000 Subject: [PATCH] Make Shift+MMB in Konqy work even with no focus stealing prevention. svn path=/trunk/kdebase/kwin/; revision=304844 --- activation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activation.cpp b/activation.cpp index f60e5e5927..f1bc56ae20 100644 --- a/activation.cpp +++ b/activation.cpp @@ -468,19 +468,19 @@ bool Workspace::allowClientActivation( const Client* c, Time time, bool focus_in // got FocusOut, and therefore got deactivated. ac = last_active_client; } + if( time == 0 ) // explicitly asked not to get focus + return false; if( options->focusStealingPreventionLevel == 0 ) // none return true; if( options->focusStealingPreventionLevel == 4 ) // extreme return false; + if( c->ignoreFocusStealing()) + return true; if( ac == NULL || ac->isDesktop()) { kdDebug( 1212 ) << "Activation: No client active, allowing" << endl; return true; // no active client -> always allow } - if( c->ignoreFocusStealing()) - return true; - if( time == 0 ) // explicitly asked not to get focus - return false; // TODO window urgency -> return true? if( Client::belongToSameApplication( c, ac, true )) {