diff options
author | Colomban Wendling <[email protected]> | 2018-09-26 16:14:24 +0200 |
---|---|---|
committer | lukefromdc <[email protected]> | 2018-09-30 16:04:23 -0400 |
commit | b761b23f64644122db4a3a57a831e7183e17b340 (patch) | |
tree | 5969b2f6976d5b2cb291e7b325120727341df4d9 /plugins | |
parent | 3c9e5dd101a435d1bf9bef938668a04d5939a537 (diff) | |
download | mate-settings-daemon-b761b23f64644122db4a3a57a831e7183e17b340.tar.bz2 mate-settings-daemon-b761b23f64644122db4a3a57a831e7183e17b340.tar.xz |
Add support for org.mate.accessibility-keyboard.stickykeys-latch-to-lock
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/a11y-keyboard/msd-a11y-keyboard-manager.c | 7 |
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, |