gtktext: Also reset IM context after IM surrounding text deletion
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 6 Sep 2022 19:53:25 +0000 (21:53 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 6 Sep 2022 20:17:40 +0000 (22:17 +0200)
commit7c0a395ff9443ad4d59fa50c64962b204f4c0e62
treece40e585d9d62ea3273a27f22c3f904322cb4744
parent41f26975a99f3f66db41c5c8c08f6d220a3534d2
gtktext: 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/gtktext.c