gtktextview: Also reset IM context after IM surrounding text deletion
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 6 Sep 2022 19:55:13 +0000 (21:55 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 6 Sep 2022 20:17:40 +0000 (22:17 +0200)
commit5b78fe2721222fabbff245e6249cc8fe89957f1a
tree58637f35cc5a6314d41dd5a661ef7f58bdc12b73
parent7c0a395ff9443ad4d59fa50c64962b204f4c0e62
gtktextview: Also reset IM context after IM surrounding text deletion

When the IM commands the GtkText to delete text, the cursor position
would change, and so would the surrounding text. Reset the IM context
so that these updates are properly picked up by the IM.

Fixes backspace key behavior in the GNOME Shell OSK, since that relies
on the surrounding text being properly updated for the next iteration.
gtk/gtktextview.c