Make Shift+MMB in Konqy work even with no focus stealing prevention.
svn path=/trunk/kdebase/kwin/; revision=304844
This commit is contained in:
parent
23ac6a4381
commit
4bf13f6f8f
1 changed files with 4 additions and 4 deletions
|
@ -468,19 +468,19 @@ bool Workspace::allowClientActivation( const Client* c, Time time, bool focus_in
|
||||||
// got FocusOut, and therefore got deactivated.
|
// got FocusOut, and therefore got deactivated.
|
||||||
ac = last_active_client;
|
ac = last_active_client;
|
||||||
}
|
}
|
||||||
|
if( time == 0 ) // explicitly asked not to get focus
|
||||||
|
return false;
|
||||||
if( options->focusStealingPreventionLevel == 0 ) // none
|
if( options->focusStealingPreventionLevel == 0 ) // none
|
||||||
return true;
|
return true;
|
||||||
if( options->focusStealingPreventionLevel == 4 ) // extreme
|
if( options->focusStealingPreventionLevel == 4 ) // extreme
|
||||||
return false;
|
return false;
|
||||||
|
if( c->ignoreFocusStealing())
|
||||||
|
return true;
|
||||||
if( ac == NULL || ac->isDesktop())
|
if( ac == NULL || ac->isDesktop())
|
||||||
{
|
{
|
||||||
kdDebug( 1212 ) << "Activation: No client active, allowing" << endl;
|
kdDebug( 1212 ) << "Activation: No client active, allowing" << endl;
|
||||||
return true; // no active client -> always allow
|
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?
|
// TODO window urgency -> return true?
|
||||||
if( Client::belongToSameApplication( c, ac, true ))
|
if( Client::belongToSameApplication( c, ac, true ))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue