From 454648b78be7cfb9b8030f1c3060153446c8906d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Tue, 2 Mar 2004 17:43:46 +0000 Subject: [PATCH] Uh oh, looks like this code missed one renumbering of the levels :(. (#74546) svn path=/trunk/kdebase/kwin/; revision=293157 --- activation.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/activation.cpp b/activation.cpp index 70fe5e9db9..07a185fe80 100644 --- a/activation.cpp +++ b/activation.cpp @@ -422,7 +422,7 @@ bool Workspace::allowClientActivation( const Client* c, Time time, bool focus_in if( time == -1U ) time = c->userTime(); if( session_saving - && options->focusStealingPreventionLevel <= 3 ) // <= normal + && options->focusStealingPreventionLevel <= 2 ) // <= normal { return true; } @@ -437,7 +437,7 @@ bool Workspace::allowClientActivation( const Client* c, Time time, bool focus_in } if( options->focusStealingPreventionLevel == 0 ) // none return true; - if( options->focusStealingPreventionLevel == 5 ) // extreme + if( options->focusStealingPreventionLevel == 4 ) // extreme return false; if( ac == NULL || ac->isDesktop()) { @@ -454,7 +454,7 @@ bool Workspace::allowClientActivation( const Client* c, Time time, bool focus_in kdDebug( 1212 ) << "Activation: Belongs to active application" << endl; return true; } - if( options->focusStealingPreventionLevel == 4 ) // high + if( options->focusStealingPreventionLevel == 3 ) // high return false; if( time == -1U ) // no time known if( session_active ) @@ -483,14 +483,14 @@ bool Workspace::allowClientActivation( const Client* c, Time time, bool focus_in bool Workspace::allowFullClientRaising( const Client* c ) { if( session_saving - && options->focusStealingPreventionLevel <= 3 ) // <= normal + && options->focusStealingPreventionLevel <= 2 ) // <= normal { return true; } Client* ac = mostRecentlyActivatedClient(); if( options->focusStealingPreventionLevel == 0 ) // none return true; - if( options->focusStealingPreventionLevel == 5 ) // extreme + if( options->focusStealingPreventionLevel == 4 ) // extreme return false; if( ac == NULL || ac->isDesktop()) { @@ -505,7 +505,7 @@ bool Workspace::allowFullClientRaising( const Client* c ) kdDebug( 1212 ) << "Raising: Belongs to active application" << endl; return true; } - if( options->focusStealingPreventionLevel == 4 ) // high + if( options->focusStealingPreventionLevel == 3 ) // high return false; if( !c->hasUserTimeSupport()) {