mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
ibusManager: Close candidate popup upon engine change
The IBusCandidatePopup can get 'stuck' in an active, visible state if
it is on-screen at the point when the input method is changed to a method
that doesn't use such popup (e.g. regular English).
Force the candidate popup to close when the engine is changed.
It will reappear (via regular lookup table update signal) if/when it is
next required.
Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6717
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2774>
(cherry picked from commit fa34d30d3e)
This commit is contained in:
parent
de2627d1e9
commit
16d6416a39
1 changed files with 2 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
const { Gio, GLib, IBus, Meta, Shell } = imports.gi;
|
||||
const Signals = imports.misc.signals;
|
||||
const BoxPointer = imports.ui.boxpointer;
|
||||
|
||||
const IBusCandidatePopup = imports.ui.ibusCandidatePopup;
|
||||
|
||||
|
|
@ -253,6 +254,7 @@ var IBusManager = class extends Signals.EventEmitter {
|
|||
return;
|
||||
|
||||
this._currentEngineName = engineName;
|
||||
this._candidatePopup.close(BoxPointer.PopupAnimation.NONE);
|
||||
|
||||
if (this._registerPropertiesId != 0)
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue