"activate" event on every activation, not only on taskbar
svn path=/trunk/kdebase/kwin/; revision=62339
This commit is contained in:
parent
16e4aa004c
commit
a309da9f0e
2 changed files with 3 additions and 2 deletions
|
@ -1925,8 +1925,10 @@ void Client::setShade( bool s )
|
|||
void Client::setActive( bool act)
|
||||
{
|
||||
windowWrapper()->setActive( act );
|
||||
if ( act )
|
||||
if ( act ) {
|
||||
workspace()->setActiveClient( this );
|
||||
Events::raise( Events::Activate );
|
||||
}
|
||||
|
||||
if ( active == act )
|
||||
return;
|
||||
|
|
|
@ -986,7 +986,6 @@ void Workspace::activateClient( Client* c)
|
|||
iconifyOrDeiconifyTransientsOf( c );
|
||||
if ( options->focusPolicyIsReasonable() ) {
|
||||
requestFocus( c );
|
||||
Events::raise( Events::Activate );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue