From 8ec069b98d50326f628bab3e58a8cf30f84b8895 Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Thu, 31 Aug 2000 17:31:45 +0000 Subject: [PATCH] not _that_ many sounds svn path=/trunk/kdebase/kwin/; revision=62340 --- client.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client.cpp b/client.cpp index 2dcee4de4a..3e7e1f1bd9 100644 --- a/client.cpp +++ b/client.cpp @@ -1925,14 +1925,15 @@ 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; active = act; + if ( active ) + Events::raise( Events::Activate ); + if ( !active && autoRaiseTimer ) { delete autoRaiseTimer; autoRaiseTimer = 0;