kwinrc option for listing applications for which focus stealing prevention
should not be used. I have a strange feeling it will come handy :-/. svn path=/trunk/kdebase/kwin/; revision=273127
This commit is contained in:
parent
ba3e612f68
commit
f4b4647fc3
3 changed files with 7 additions and 0 deletions
|
@ -440,6 +440,8 @@ bool Workspace::allowClientActivation( const Client* c, Time time, bool focus_in
|
|||
kdDebug( 1212 ) << "Activation: No client active, allowing" << endl;
|
||||
return true; // no active client -> always allow
|
||||
}
|
||||
if( options->ignoreFocusStealingClasses.contains(QString::fromLatin1(c->resourceClass())))
|
||||
return true;
|
||||
if( time == 0 ) // explicitly asked not to get focus
|
||||
return false;
|
||||
// TODO window urgency -> return true?
|
||||
|
@ -491,6 +493,8 @@ bool Workspace::allowFullClientRaising( const Client* c )
|
|||
kdDebug( 1212 ) << "Raising: No client active, allowing" << endl;
|
||||
return true; // no active client -> always allow
|
||||
}
|
||||
if( options->ignoreFocusStealingClasses.contains(QString::fromLatin1(c->resourceClass())))
|
||||
return true;
|
||||
// TODO window urgency -> return true?
|
||||
if( Client::belongToSameApplication( c, ac, true ))
|
||||
{
|
||||
|
|
|
@ -124,6 +124,7 @@ unsigned long Options::updateSettings()
|
|||
OpTitlebarDblClick = windowOperation( config->readEntry("TitlebarDoubleClickCommand", "Shade"), true );
|
||||
|
||||
ignorePositionClasses = config->readListEntry("IgnorePositionClasses");
|
||||
ignoreFocusStealingClasses = config->readListEntry("IgnoreFocusStealingClasses");
|
||||
|
||||
// Mouse bindings
|
||||
config->setGroup( "MouseBindings");
|
||||
|
|
|
@ -184,6 +184,8 @@ class Options : public KDecorationOptions
|
|||
* List of window classes to ignore PPosition size hint
|
||||
*/
|
||||
QStringList ignorePositionClasses;
|
||||
// List of window classes for which not to use focus stealing prevention
|
||||
QStringList ignoreFocusStealingClasses;
|
||||
|
||||
WindowOperation operationTitlebarDblClick() { return OpTitlebarDblClick; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue