"activate" event on every activation, not only on taskbar

svn path=/trunk/kdebase/kwin/; revision=62339
This commit is contained in:
Matthias Ettrich 2000-08-31 17:29:10 +00:00
parent 16e4aa004c
commit a309da9f0e
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -986,7 +986,6 @@ void Workspace::activateClient( Client* c)
iconifyOrDeiconifyTransientsOf( c );
if ( options->focusPolicyIsReasonable() ) {
requestFocus( c );
Events::raise( Events::Activate );
}
}