From f13d425d595540b8b061404101e6133906c30330 Mon Sep 17 00:00:00 2001 From: Cristian Tibirna Date: Thu, 28 Feb 2002 15:41:22 +0000 Subject: [PATCH] CT: closes #38320 (I didn't manage to reproduce it though) svn path=/trunk/kdebase/kwin/; revision=139498 --- client.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index c90d9fbc88..3adf93e546 100644 --- a/client.cpp +++ b/client.cpp @@ -2408,7 +2408,10 @@ void Client::takeFocus( bool force ) return; // menus and dock windows don't take focus if not forced if ( input ) { - setActive( TRUE ); + // Matthias Ettrich says to comment it so that we avoid two consecutive setActive + // We will have to look after it anyways, in case people will get problems + //setActive( TRUE ); + // Qt may delay the mapping which may cause XSetInputFocus to fail, force show window QApplication::sendPostedEvents( windowWrapper(), QEvent::ShowWindowRequest ); XSetInputFocus( qt_xdisplay(), win, RevertToPointerRoot, kwin_time );