blob: 74a3252ef0efb80c92fa6fcf02ff3e5d7596e3ca (
about) (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
--- scim-bridge-0.4.16/client-qt/scim-bridge-client-imcontext-qt.cpp.bak 2008-11-02 14:44:46.000000000 +0800
+++ scim-bridge-0.4.16/client-qt/scim-bridge-client-imcontext-qt.cpp 2010-09-11 22:46:10.396979441 +0800
@@ -220,7 +220,12 @@
{
scim_bridge_pdebugln (4, "ScimBridgeClientIMContextImpl::setFocusWidget ()");
QInputContext::setFocusWidget (widget);
- focus_in ();
+ if (widget == NULL) {
+ focus_out ();
+ }
+ else {
+ focus_in ();
+ }
update ();
}
@@ -442,9 +447,11 @@
}
}
- set_preedit_shown (false);
- update_preedit ();
-
+ if (preedit_shown) {
+ set_preedit_shown (false);
+ update_preedit ();
+ }
+
focused_imcontext = NULL;
}
|