diff --git a/src/backends/x11/meta-keymap-x11.c b/src/backends/x11/meta-keymap-x11.c index 89542e859..d29a858fe 100644 --- a/src/backends/x11/meta-keymap-x11.c +++ b/src/backends/x11/meta-keymap-x11.c @@ -869,9 +869,9 @@ meta_keymap_x11_release_keycode_if_needed (MetaKeymapX11 *keymap_x11, } void -meta_keymap_x11_latch_modifiers (MetaKeymapX11 *keymap_x11, - uint32_t level, - gboolean enable) +meta_keymap_x11_lock_modifiers (MetaKeymapX11 *keymap_x11, + uint32_t level, + gboolean enable) { uint32_t modifiers[] = { 0, @@ -891,9 +891,9 @@ meta_keymap_x11_latch_modifiers (MetaKeymapX11 *keymap_x11, else value = 0; - XkbLatchModifiers (meta_clutter_x11_get_default_display (), - XkbUseCoreKbd, modifiers[level], - value); + XkbLockModifiers (meta_clutter_x11_get_default_display (), + XkbUseCoreKbd, modifiers[level], + value); } static uint32_t diff --git a/src/backends/x11/meta-keymap-x11.h b/src/backends/x11/meta-keymap-x11.h index 67a5f8eb9..2f93acdbc 100644 --- a/src/backends/x11/meta-keymap-x11.h +++ b/src/backends/x11/meta-keymap-x11.h @@ -44,9 +44,9 @@ gboolean meta_keymap_x11_keycode_for_keyval (MetaKeymapX11 *keymap_x11, guint keyval, guint *keycode_out, guint *level_out); -void meta_keymap_x11_latch_modifiers (MetaKeymapX11 *keymap_x11, - uint32_t level, - gboolean enable); +void meta_keymap_x11_lock_modifiers (MetaKeymapX11 *keymap_x11, + uint32_t level, + gboolean enable); gboolean meta_keymap_x11_reserve_keycode (MetaKeymapX11 *keymap_x11, guint keyval, guint *keycode_out); diff --git a/src/backends/x11/meta-virtual-input-device-x11.c b/src/backends/x11/meta-virtual-input-device-x11.c index 54bb43ad1..f6464fb91 100644 --- a/src/backends/x11/meta-virtual-input-device-x11.c +++ b/src/backends/x11/meta-virtual-input-device-x11.c @@ -186,7 +186,7 @@ meta_virtual_input_device_x11_notify_keyval (ClutterVirtualInputDevice *virtual_ if (!meta_keymap_x11_get_is_modifier (keymap, keycode) && key_state == CLUTTER_KEY_STATE_PRESSED) - meta_keymap_x11_latch_modifiers (keymap, level, TRUE); + meta_keymap_x11_lock_modifiers (keymap, level, TRUE); XTestFakeKeyEvent (meta_clutter_x11_get_default_display (), (KeyCode) keycode, @@ -196,7 +196,7 @@ meta_virtual_input_device_x11_notify_keyval (ClutterVirtualInputDevice *virtual_ if (key_state == CLUTTER_KEY_STATE_RELEASED) { if (!meta_keymap_x11_get_is_modifier (keymap, keycode)) - meta_keymap_x11_latch_modifiers (keymap, level, FALSE); + meta_keymap_x11_lock_modifiers (keymap, level, FALSE); meta_keymap_x11_release_keycode_if_needed (keymap, keycode); } }