From 2e42deec73f791cf5510179d3a47787026219a34 Mon Sep 17 00:00:00 2001 From: Lucas Murray Date: Wed, 28 Jan 2009 10:30:44 +0000 Subject: [PATCH] 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 --- useractions.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/useractions.cpp b/useractions.cpp index da2f1191dd..0ca721f5bc 100644 --- a/useractions.cpp +++ b/useractions.cpp @@ -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();