From 8ab344929d4fe58d8ba34558de1ac0e9b77c9f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 24 Mar 2023 11:26:49 +0100 Subject: [PATCH] js/main: Unset input method on shutdown After shutdown, the Javascript context will be disposed, so we must make sure we remain the active input method after this point. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6535 Part-of: --- js/ui/main.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/ui/main.js b/js/ui/main.js index cf9357f0f..6ecb1a06b 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -241,6 +241,8 @@ function _initializeUI() { inputMethod = new InputMethod.InputMethod(); Clutter.get_default_backend().set_input_method(inputMethod); + global.connect('shutdown', + () => Clutter.get_default_backend().set_input_method(null)); screenshotUI = new Screenshot.ScreenshotUI();