keyboard: Ensure completion is disabled when OSK is destroyed

If the OSK is destroyed while visible without being close()'d first,
the completion mode might remain turned on. Ensure it is turned off
on OSK destruction so that typing-booster has no chance to remain
turned on.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2543>
(cherry picked from commit a33e3eaf22)
This commit is contained in:
Carlos Garnacho 2022-11-16 13:26:44 +01:00 committed by Florian Müllner
parent 5f421f9412
commit d2cbd45307

View file

@ -1388,6 +1388,8 @@ var Keyboard = GObject.registerClass({
this._languagePopup.destroy();
this._languagePopup = null;
}
IBusManager.getIBusManager().setCompletionEnabled(false, () => Main.inputMethod.update());
}
_setupKeyboard() {