summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2020-08-05 15:53:28 +0200
committerRobert Antoni Buj Gelonch <[email protected]>2020-09-05 18:02:41 +0200
commit4f45e7f964fef34e18f27cf6a844b3f2898860c0 (patch)
tree07380dae503f346ff0f5d408cf06608665510139 /plugins
parent6a1e58094e5ecafb3ec6358f428f511baf643dcf (diff)
downloadmate-settings-daemon-4f45e7f964fef34e18f27cf6a844b3f2898860c0.tar.bz2
mate-settings-daemon-4f45e7f964fef34e18f27cf6a844b3f2898860c0.tar.xz
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.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/a11y-keyboard/msd-a11y-keyboard-manager.c6
1 files changed, 5 insertions, 1 deletions
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);