diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/keyboard/msd-keyboard-xkb.c | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/plugins/keyboard/msd-keyboard-xkb.c b/plugins/keyboard/msd-keyboard-xkb.c index 6b2dea3..50d9400 100644 --- a/plugins/keyboard/msd-keyboard-xkb.c +++ b/plugins/keyboard/msd-keyboard-xkb.c @@ -594,14 +594,25 @@ msd_keyboard_xkb_init (MsdKeyboardManager * kbd_manager) settings_kbd = g_settings_new (MATEKBD_KBD_SCHEMA); matekbd_desktop_config_init (¤t_desktop_config, - xkl_engine); + xkl_engine); matekbd_keyboard_config_init (¤t_kbd_config, - xkl_engine); + xkl_engine); + xkl_engine_backup_names_prop (xkl_engine); msd_keyboard_xkb_analyze_sysconfig (); - g_signal_connect (settings_desktop, "changed", G_CALLBACK(apply_desktop_settings_cb), NULL); - g_signal_connect (settings_kbd, "changed", G_CALLBACK(apply_xkb_settings_cb), NULL); + matekbd_desktop_config_start_listen (¤t_desktop_config, + G_CALLBACK (apply_desktop_settings_cb), + NULL); + + matekbd_keyboard_config_start_listen (¤t_kbd_config, + G_CALLBACK (apply_xkb_settings_cb), + NULL); + + g_signal_connect (settings_desktop, "changed", + G_CALLBACK (apply_desktop_settings_cb), NULL); + g_signal_connect (settings_kbd, "changed", + G_CALLBACK (apply_xkb_settings_cb), NULL); gdk_window_add_filter (NULL, (GdkFilterFunc) msd_keyboard_xkb_evt_filter, NULL); |