summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2022-11-16 13:26:44 +0100
committerMarge Bot <marge-bot@gnome.org>2022-11-16 18:06:27 +0000
commita33e3eaf22664597499dbd3fdee9b7d9ba80d28f (patch)
treecbbca605e12686cd6376df5ce023c0e4201db347
parent52253625b84e9f6c6df7a581f307c1590c76ef72 (diff)
downloadgnome-shell-a33e3eaf22664597499dbd3fdee9b7d9ba80d28f.tar.gz
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>
-rw-r--r--js/ui/keyboard.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 78c024524..b3c4cbe32 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -1388,6 +1388,8 @@ var Keyboard = GObject.registerClass({
this._languagePopup.destroy();
this._languagePopup = null;
}
+
+ IBusManager.getIBusManager().setCompletionEnabled(false, () => Main.inputMethod.update());
}
_setupKeyboard() {