"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)
|
void Client::setActive( bool act)
|
||||||
{
|
{
|
||||||
windowWrapper()->setActive( act );
|
windowWrapper()->setActive( act );
|
||||||
if ( act )
|
if ( act ) {
|
||||||
workspace()->setActiveClient( this );
|
workspace()->setActiveClient( this );
|
||||||
|
Events::raise( Events::Activate );
|
||||||
|
}
|
||||||
|
|
||||||
if ( active == act )
|
if ( active == act )
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -986,7 +986,6 @@ void Workspace::activateClient( Client* c)
|
||||||
iconifyOrDeiconifyTransientsOf( c );
|
iconifyOrDeiconifyTransientsOf( c );
|
||||||
if ( options->focusPolicyIsReasonable() ) {
|
if ( options->focusPolicyIsReasonable() ) {
|
||||||
requestFocus( c );
|
requestFocus( c );
|
||||||
Events::raise( Events::Activate );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue