From 510ffc0af0c64b975906a16b101414c7a1ebbd99 Mon Sep 17 00:00:00 2001 From: Christof Pintaske Date: Tue, 13 Aug 2002 15:59:19 +0000 Subject: #101775# dont set focus into the status window --- vcl/unx/source/window/salframe.cxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'vcl/unx') diff --git a/vcl/unx/source/window/salframe.cxx b/vcl/unx/source/window/salframe.cxx index af2b7ba06cb4..eaaa286faf57 100644 --- a/vcl/unx/source/window/salframe.cxx +++ b/vcl/unx/source/window/salframe.cxx @@ -2,9 +2,9 @@ * * $RCSfile: salframe.cxx,v $ * - * $Revision: 1.140 $ + * $Revision: 1.141 $ * - * last change: $Author: ssa $ $Date: 2002-07-16 09:04:37 $ + * last change: $Author: cp $ $Date: 2002-08-13 16:59:19 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3301,7 +3301,14 @@ long SalFrameData::Dispatch( XEvent *pEvent ) * sawfish does not set the focus to it. Applies only for click to focus mode. */ if( ! (nStyle_ & SAL_FRAME_STYLE_FLOAT ) ) - XSetInputFocus( GetXDisplay(), GetShellWindow(), RevertToParent, CurrentTime ); + { + // #101775# don't set the focus into the IME status window + // since this will lead to a parent loose-focus, close status, + // reget focus, open status, .... flicker loop + if ( (I18NStatus::get().getStatusFrame() != pFrame_) ) + XSetInputFocus( GetXDisplay(), GetShellWindow(), RevertToParent, CurrentTime ); + } + /* * sometimes a message box/dialogue is brought up when a frame is not mapped * the corresponding TRANSIENT_FOR hint is then set to the root window -- cgit