From 4f45e7f964fef34e18f27cf6a844b3f2898860c0 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Wed, 5 Aug 2020 15:53:28 +0200 Subject: a11y-keyboard: Delay registration of the plugin Delay registration of the a11y keyboard plugin to run after the non-a11y keyboard one to avoid numlock state change conflicts. --- plugins/a11y-keyboard/msd-a11y-keyboard-manager.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c index 76dbc75..1441ca6 100644 --- a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c +++ b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c @@ -1133,7 +1133,11 @@ msd_a11y_keyboard_manager_start (MsdA11yKeyboardManager *manager, { mate_settings_profile_start (NULL); - g_idle_add ((GSourceFunc) start_a11y_keyboard_idle_cb, manager); + /* give our initialization a lower priority over msd-keyoboard so it + * restores the numlock state before we might start monitoring it */ + g_idle_add_full (G_PRIORITY_LOW, + (GSourceFunc) start_a11y_keyboard_idle_cb, manager, + NULL); mate_settings_profile_end (NULL); -- cgit v1.2.1