mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
inputMethod: Check that there is an existing cursor location
Commit17d9ec5788made the input method call update() more eagerly, but also at times that it does not have a cursor position yet. Make it bail out correctly in that situation. Fixes:17d9ec5788("inputMethod: Keep Capabilite.FOCUS before context.focus_in/focus_out") Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2876> (cherry-picked from commit5e36a06835)
This commit is contained in:
parent
a9974ea52b
commit
53b796c86e
1 changed files with 5 additions and 3 deletions
|
|
@ -376,9 +376,11 @@ var InputMethod = GObject.registerClass({
|
|||
return;
|
||||
this._updateCapabilities();
|
||||
this._context.set_content_type(this._purpose, this._hints);
|
||||
this._context.set_cursor_location(
|
||||
this._cursorRect.x, this._cursorRect.y,
|
||||
this._cursorRect.width, this._cursorRect.height);
|
||||
if (this._cursorRect) {
|
||||
this._context.set_cursor_location(
|
||||
this._cursorRect.x, this._cursorRect.y,
|
||||
this._cursorRect.width, this._cursorRect.height);
|
||||
}
|
||||
this._emitRequestSurrounding();
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue