From a309da9f0e016543f9933e9721f692dbaaadc946 Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Thu, 31 Aug 2000 17:29:10 +0000 Subject: [PATCH] "activate" event on every activation, not only on taskbar svn path=/trunk/kdebase/kwin/; revision=62339 --- client.cpp | 4 +++- workspace.cpp | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index 28a069dfbc..2dcee4de4a 100644 --- a/client.cpp +++ b/client.cpp @@ -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; diff --git a/workspace.cpp b/workspace.cpp index e43d2959ab..40d14cf1de 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -986,7 +986,6 @@ void Workspace::activateClient( Client* c) iconifyOrDeiconifyTransientsOf( c ); if ( options->focusPolicyIsReasonable() ) { requestFocus( c ); - Events::raise( Events::Activate ); } }