Adding a line self.__previous_focus_ic = None at line 70 of /usr/share/ibus/ui/gtk/panel.py solves this problem.
Adding a line
self._ _previous_ focus_ic = None ibus/ui/ gtk/panel. py
at line 70 of /usr/share/
solves this problem.