Keep the IME anchor following the cursor when child output moves it

Key presses update the IME position, but cursor motion caused by child
output, such as the echo of committed text, did not. The next composition
then started with a stale anchor and its candidate window briefly appeared
at the old position before jumping to the cursor.

Once an IME composition has been seen, push the cursor position to the IME
whenever it changes outside a composition in the active window of the
focused OS window. Nothing extra happens until an IME is used, and there is
no timer, so no feedback loop with GNOME's done events.

Closes #10644
This commit is contained in:
Kovid Goyal 2026-10-11 09:40:28 +05:30
parent 0a9c1f0112
commit 2414d64e67
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
7 changed files with 49 additions and 5 deletions

View file

@ -297,6 +297,10 @@ Detailed list of changes
its end, so that it no longer jumps horizontally while composing text
(:pull:`10642`)
- IME: Keep the candidate window anchored at the cursor when program output
moves it, so it no longer briefly appears at the previous position at the
start of the next composition (:pull:`10644`)
- Fix closing an unfocused window that comes before the focused window in the
layout sometimes moving focus to a different window