ibus-m17n input method sometimes lost the commit text in Gtk+ wayland
The Gujarati & Hindi input methods from ibus-m17n sometimes lost the commit text in Gtk+ wayland input method module.
This issue is similar to ibus-hangul lost commit text issue, but easier to reproduce it.
Steps to reproduce
Type in Gujarati or Hindi language using ibus-m17n input method.
Take Gujarati (itrans (m17n)) for example.
- Select Gujarati (itrans (m17n)) input method from ibus input method.
- Start typing some words in Gujarati with GtkEntry.
This issue is reproducible with Entry Buffer in gtk3-demo with GNOME on Wayland.
After restart gtk3-demo, it is easier to reproduce this issue.
Current behavior
Press the keys in keyboard, like "kema chhe?" or "kaise ho?".
We got the result like "કેમ ?" or "કૈસે ?".
Expected outcome
Press the keys in keyboard, like "kema chhe?" or "kaise ho?".
We got the result like "કેમ છે?" or "કૈસે હો?".
Version information
gtk3 3.24.24 in Fedora 33
Additional information
Downstream URL: https://bugzilla.redhat.com/show_bug.cgi?id=1850832
It seems this issue is related with the serial check valid = serial == global->serial
in Gtk+ wayland input method module.