diff options
author | Timothy Pearson <[email protected]> | 2014-11-21 14:11:16 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2014-11-21 14:11:16 -0600 |
commit | 84d7db019508c1185f513e864483fd1fd608c05c (patch) | |
tree | 7c9fdfc01ac4a6db18cd3ffd7d9c1973363a289e /twin/activation.cpp | |
parent | f685dc8a297618b76d81a192a28f7d586e9a170f (diff) | |
download | tdebase-84d7db019508c1185f513e864483fd1fd608c05c.tar.gz tdebase-84d7db019508c1185f513e864483fd1fd608c05c.zip |
Call setActive if new focus window is found and set when rotating focus to next available window
This resolves Bug 2189
Diffstat (limited to 'twin/activation.cpp')
-rw-r--r-- | twin/activation.cpp | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/twin/activation.cpp b/twin/activation.cpp index 6f79c47cc..d00efc3d6 100644 --- a/twin/activation.cpp +++ b/twin/activation.cpp @@ -408,7 +408,9 @@ bool Workspace::activateNextClient( Client* c ) if( c != NULL ) { if( c == active_client ) + { setActiveClient( NULL, Allowed ); + } should_get_focus.remove( c ); } if( focusChangeEnabled()) @@ -442,7 +444,10 @@ bool Workspace::activateNextClient( Client* c ) if( get_focus == NULL ) get_focus = findDesktop( true, currentDesktop()); if( get_focus != NULL ) + { requestFocus( get_focus ); + get_focus->setActive( true, true ); + } else focusToNull(); } @@ -855,7 +860,7 @@ void Client::setActive( bool act, bool updateOpacity_) return; active = act; workspace()->setActiveClient( act ? this : NULL, Allowed ); - + if (updateOpacity_) updateOpacity(); if (isModal() && transientFor()) { @@ -863,7 +868,7 @@ void Client::setActive( bool act, bool updateOpacity_) else if (!transientFor()->custom_opacity) transientFor()->setOpacity(options->translucentActiveWindows, options->activeWindowOpacity); } updateShadowSize(); - + if ( active ) { Notify::raise( Notify::Activate ); @@ -891,6 +896,7 @@ void Client::setActive( bool act, bool updateOpacity_) removeShadow(); if (options->shadowEnabled(false)) + { if (this == workspace()->topClientOnDesktop(desktop())) { /* If the newly deactivated window is the top client on the @@ -899,10 +905,15 @@ void Client::setActive( bool act, bool updateOpacity_) * activated window's shadow. */ if ((shadowAfterClient = workspace()->activeClient())) + { drawShadowAfter(shadowAfterClient); + } } else + { drawDelayedShadow(); + } + } } if( !active ) |