From 7ae8ea2bf960c657c72e43aaa889a3e38fe3e21c Mon Sep 17 00:00:00 2001 From: Matthias Ettrich Date: Tue, 27 Jun 2000 14:43:12 +0000 Subject: [PATCH] focus to null (or desktop ) on last-window-iconified svn path=/trunk/kdebase/kwin/; revision=54602 --- workspace.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index ae7371ed4a..a57c9bee00 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1046,11 +1046,15 @@ void Workspace::clientHidden( Client* c ) { if ((*it)->isVisible()) { requestFocus(*it); - break; + return; } } } } + if ( desktop_client ) + requestFocus( desktop_client ); + else + focusToNull(); }