| 1 |
diff -up scim-bridge-0.4.15/client-qt/qt4/scim-bridge-client-imcontext-qt.cpp.bz461373 scim-bridge-0.4.15/client-qt/qt4/scim-bridge-client-imcontext-qt.cpp
|
| 2 |
--- scim-bridge-0.4.15/client-qt/scim-bridge-client-imcontext-qt.cpp.bz461373 2008-09-16 09:54:29.000000000 +0800
|
| 3 |
+++ scim-bridge-0.4.15/client-qt/scim-bridge-client-imcontext-qt.cpp 2008-09-16 09:58:47.000000000 +0800
|
| 4 |
@@ -220,7 +220,12 @@ void ScimBridgeClientIMContextImpl::setF
|
| 5 |
{
|
| 6 |
scim_bridge_pdebugln (4, "ScimBridgeClientIMContextImpl::setFocusWidget ()");
|
| 7 |
QInputContext::setFocusWidget (widget);
|
| 8 |
- focus_in ();
|
| 9 |
+ if (widget == NULL) {
|
| 10 |
+ focus_out ();
|
| 11 |
+ }
|
| 12 |
+ else {
|
| 13 |
+ focus_in ();
|
| 14 |
+ }
|
| 15 |
update ();
|
| 16 |
}
|
| 17 |
|
| 18 |
@@ -442,8 +447,10 @@ void ScimBridgeClientIMContextImpl::focu
|
| 19 |
}
|
| 20 |
}
|
| 21 |
|
| 22 |
- set_preedit_shown (false);
|
| 23 |
- update_preedit ();
|
| 24 |
+ if (preedit_shown) {
|
| 25 |
+ set_preedit_shown (false);
|
| 26 |
+ update_preedit ();
|
| 27 |
+ }
|
| 28 |
|
| 29 |
focused_imcontext = NULL;
|
| 30 |
}
|