inputMethod: focus-in event is not sent when another window is closed by keyboard
gnome-shell calls ibus_input_context_focus_in() but the event is not forwarded to panels and engines in GNOME Wayland because gnome-shell changes IBus.Capabilite by focus events and disables IBus.Capabilite.FOCUS when ibus_input_context_focus_in() is called.
To reproduce:
- Run gnome-terminal in GNOME Wayland
- Run
gedit
from the shell on gnome-terminal. - Type Alt-F4 to close gedit
And then gnome-shell calls ibus_input_context_focus_in() but ibus-daemon does not forward the event because IBus.Capabilite.FOCUS is disabled by gnome-shell.
After type something on gnome-terminal, the focus-in event is send to gnome-temrinal.