When the user lowers the active window with a mouse action also

automatically focus the next available window.
BUG: 182146

svn path=/trunk/KDE/kdebase/workspace/; revision=917649
This commit is contained in:
Lucas Murray 2009-01-28 10:30:44 +00:00
parent f9f4d916e4
commit 2e42deec73

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();