diff options
author | Philipp Lohmann <pl@openoffice.org> | 2002-02-26 13:09:00 +0000 |
---|---|---|
committer | Philipp Lohmann <pl@openoffice.org> | 2002-02-26 13:09:00 +0000 |
commit | 9a6c40eb0d0d2f9bfb60e2f3f1ef717327ec4619 (patch) | |
tree | c7286a761cfa5ef49f4a78b7a731c90073d22a02 | |
parent | 28173546960484e2a3a231664b0f02cfa4025dd1 (diff) |
#93094# close XIM status window on focus lost
-rw-r--r-- | vcl/unx/source/window/salframe.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/vcl/unx/source/window/salframe.cxx b/vcl/unx/source/window/salframe.cxx index 4e7d33b00d64..d135282f8ecc 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.117 $ + * $Revision: 1.118 $ * - * last change: $Author: pl $ $Date: 2002-01-18 10:03:32 $ + * last change: $Author: pl $ $Date: 2002-02-26 14:09:00 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1845,7 +1845,11 @@ void SalFrame::SetInputContext( SalInputContext* pContext ) // only when SAL_INPUTCONTEXT_TEXT is set. if (!(pContext->mnOptions & SAL_INPUTCONTEXT_TEXT)) + { + if( maFrameData.mpInputContext ) + maFrameData.mpInputContext->Unmap( this ); return; + } // 2. We should use on-the-spot inputstyle // only when SAL_INPUTCONTEXT_EXTTEXTINPUT is set. @@ -1864,6 +1868,8 @@ void SalFrame::SetInputContext( SalInputContext* pContext ) maFrameData.mpInputContext->SetICFocus( this ); } } + else + maFrameData.mpInputContext->Map( this ); return; } |