summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2002-02-26 13:09:00 +0000
committerPhilipp Lohmann <pl@openoffice.org>2002-02-26 13:09:00 +0000
commit9a6c40eb0d0d2f9bfb60e2f3f1ef717327ec4619 (patch)
treec7286a761cfa5ef49f4a78b7a731c90073d22a02
parent28173546960484e2a3a231664b0f02cfa4025dd1 (diff)
#93094# close XIM status window on focus lost
-rw-r--r--vcl/unx/source/window/salframe.cxx10
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;
}