summaryrefslogtreecommitdiff
path: root/plugins/a11y-keyboard
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/a11y-keyboard')
-rw-r--r--plugins/a11y-keyboard/msd-a11y-keyboard-manager.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c
index ea205b8..8d26108 100644
--- a/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c
+++ b/plugins/a11y-keyboard/msd-a11y-keyboard-manager.c
@@ -359,7 +359,9 @@ set_server_from_settings (MsdA11yKeyboardManager *manager)
manager->priv->settings,
"stickykeys-enable",
XkbStickyKeysMask)) {
- desc->ctrls->ax_options |= XkbAX_LatchToLockMask;
+ desc->ctrls->ax_options = set_clear (g_settings_get_boolean (manager->priv->settings, "stickykeys-latch-to-lock"),
+ desc->ctrls->ax_options,
+ XkbAccessXFeedbackMask | XkbAX_LatchToLockMask);
desc->ctrls->ax_options = set_clear (g_settings_get_boolean (manager->priv->settings, "stickykeys-two-key-off"),
desc->ctrls->ax_options,
XkbAccessXFeedbackMask | XkbAX_TwoKeysMask);
@@ -911,6 +913,9 @@ set_settings_from_server (MsdA11yKeyboardManager *manager)
"stickykeys-enable",
desc->ctrls->enabled_ctrls & XkbStickyKeysMask);
changed |= set_bool (settings,
+ "stickykeys-latch-to-lock",
+ desc->ctrls->ax_options & XkbAX_LatchToLockMask);
+ changed |= set_bool (settings,
"stickykeys-two-key-off",
desc->ctrls->ax_options & XkbAX_TwoKeysMask);
changed |= set_bool (settings,