Keyboard preedit text inconsistent
What application is this relating to?
The issue is not specific to any particular project, or at least the project needs to be determined.
What problem did you encounter
Odd behaviour where previous text is sticking to the cursor until new preedit text is entered.
GTK stores preedit text in text fields, similar to selection. The preedit contents stay inside the text field even if it loses focus and regains it again. The text-input-v3 protocol has no facility to notify the compositor about already present preedit text. This causes previously described odd effects. There are 2 solutions, which describe different models of behaviour:
- preedit doesn't exist in unfocused widgets. Client libraries would need to be adjusted
- preedit is persistent and gets sent to the compositor. The protocol would need to be adjusted.
This might be an important detail for CJK input methods, where considerable work goes into composing a preedit text.
Needs discussing with the usual people who review input method-related protocols: wlroots, Carlos, Eike.