inputMethod: Do not communicate preedit text change on reset
This is now done in the ClutterInputFocus for us, since
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1940. There
is no need to duplicate this call, and it happens to cause undesired
scrolling to content in some cases when this reset happens during
a change in the IM focused client state.
Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4647
(Cherry-picked from commit 047691b0d3
)
This commit is contained in:
parent
b1538fcb20
commit
62fce73aee
@ -186,12 +186,8 @@ class InputMethod extends Clutter.InputMethod {
|
|||||||
this._emitRequestSurrounding();
|
this._emitRequestSurrounding();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._preeditStr !== null) {
|
|
||||||
// Unset any preedit text
|
|
||||||
this.set_preedit_text(null, 0, Clutter.PreeditResetMode.CLEAR);
|
|
||||||
this._preeditStr = null;
|
this._preeditStr = null;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
vfunc_set_cursor_location(rect) {
|
vfunc_set_cursor_location(rect) {
|
||||||
if (this._context) {
|
if (this._context) {
|
||||||
|
Loading…
Reference in New Issue
Block a user