Backport: When the user lowers the active window with a shortcut or a

mouse action automatically focus the next available window.
CCBUG: 182146

svn path=/branches/KDE/4.2/kdebase/workspace/; revision=919003
icc-effect-5.14.5
Lucas Murray 2009-01-31 09:38:56 +00:00
parent 87d613a38a
commit 01f6af00c9
1 changed files with 10 additions and 0 deletions

View File

@ -571,6 +571,10 @@ bool Client::performMouseCommand( Options::MouseCommand command, const QPoint &g
break;
case Options::MouseLower:
workspace()->lowerClient( this );
// As this most likely makes the window no longer visible change the
// keyboard focus to the next available window.
//workspace()->activateNextClient( this ); // Doesn't work when we lower a child window
workspace()->activateClient( workspace()->topClientOnDesktop( workspace()->currentDesktop(), -1 ));
break;
case Options::MouseShade :
toggleShade();
@ -948,7 +952,13 @@ void Workspace::slotWindowLower()
{
Client* c = active_popup_client ? active_popup_client : active_client;
if ( c )
{
lowerClient( c );
// As this most likely makes the window no longer visible change the
// keyboard focus to the next available window.
//activateNextClient( c ); // Doesn't work when we lower a child window
activateClient( topClientOnDesktop( currentDesktop(), -1 ));
}
}
/*!