From a950f756739a5fb2477fc8cb5a2c98c2a7959fb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 23 Mar 2005 13:49:50 +0000 Subject: [PATCH] When activation is forced, always request focus for the window, even with unreasonable focus policies. Fixes focusing kicker applets. BUG: 96028 svn path=/trunk/kdebase/kwin/; revision=399988 --- activation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activation.cpp b/activation.cpp index e294ff4108..1863ddaeba 100644 --- a/activation.cpp +++ b/activation.cpp @@ -275,7 +275,8 @@ void Workspace::activateClient( Client* c, bool force ) if( c->isMinimized()) c->unminimize(); - if( options->focusPolicyIsReasonable()) +// TODO force should perhaps allow this only if the window already contains the mouse + if( options->focusPolicyIsReasonable() || force ) requestFocus( c, force ); // Don't update user time for clients that have focus stealing workaround.