Fix problem when restart ibus daemon.
authorHuang Peng <shawn.p.huang@gmail.com>
Sun, 10 Aug 2008 10:14:14 +0000 (18:14 +0800)
committerHuang Peng <shawn.p.huang@gmail.com>
Sun, 10 Aug 2008 10:14:14 +0000 (18:14 +0800)
daemon/bus.py

index 934b16213ac8793dc82944a53b7d9b6c2d37e8ad..9d3184ed2b64f8f7f9e043184747a54b4f05d542 100644 (file)
@@ -298,6 +298,8 @@ class IBus(ibus.Object):
 
         self.__panel = Panel(conn, object_path)
         self.__install_panel_handlers()
+        if self.__focused_context:
+            self.__panel.focus_in(self.__focused_context.get_id())
 
     def __install_panel_handlers(self):
         signals = (