summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorHuang Peng <shawn.p.huang@gmail.com>2008-08-11 21:03:45 +0800
committerHuang Peng <shawn.p.huang@gmail.com>2008-08-11 21:03:45 +0800
commit28aa9fed6a3893af6aaa3d75aa7f9150a5fa8fa5 (patch)
tree4beeddf38a53e1544fcfdf86a5b99859ce5a16ac /daemon
parent22bc732fe637b2a94fc6494ec3ec9fb7ad158d4b (diff)
downloadibus-28aa9fed6a3893af6aaa3d75aa7f9150a5fa8fa5.tar.gz
ibus-28aa9fed6a3893af6aaa3d75aa7f9150a5fa8fa5.tar.xz
ibus-28aa9fed6a3893af6aaa3d75aa7f9150a5fa8fa5.zip
Hide preedit when disable input method.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/inputcontext.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/inputcontext.py b/daemon/inputcontext.py
index 4926faf..f4ee79f 100644
--- a/daemon/inputcontext.py
+++ b/daemon/inputcontext.py
@@ -199,6 +199,7 @@ class InputContext(ibus.Object):
self.__engine.enable()
self.__engine.focus_in()
else:
+ self.hide_preedit()
self.__ibusconn.emit_dbus_signal("Disabled", self.__id)
if self.__engine:
self.__engine.disable()