Commit fc3831c7 authored by Carlos Garnacho's avatar Carlos Garnacho Committed by Florian Müllner

backends: Fix thinko

We are meant to pass a flagset there, not a boolean. Fixes state querying
to the ClutterKeymap in the native backend.

#769
parent ce86f90e
...@@ -62,7 +62,7 @@ meta_keymap_native_get_num_lock_state (ClutterKeymap *keymap) ...@@ -62,7 +62,7 @@ meta_keymap_native_get_num_lock_state (ClutterKeymap *keymap)
return xkb_state_mod_name_is_active (xkb_state, return xkb_state_mod_name_is_active (xkb_state,
XKB_MOD_NAME_NUM, XKB_MOD_NAME_NUM,
XKB_STATE_MODS_LATCHED || XKB_STATE_MODS_LATCHED |
XKB_STATE_MODS_LOCKED); XKB_STATE_MODS_LOCKED);
} }
...@@ -78,7 +78,7 @@ meta_keymap_native_get_caps_lock_state (ClutterKeymap *keymap) ...@@ -78,7 +78,7 @@ meta_keymap_native_get_caps_lock_state (ClutterKeymap *keymap)
return xkb_state_mod_name_is_active (xkb_state, return xkb_state_mod_name_is_active (xkb_state,
XKB_MOD_NAME_CAPS, XKB_MOD_NAME_CAPS,
XKB_STATE_MODS_LATCHED || XKB_STATE_MODS_LATCHED |
XKB_STATE_MODS_LOCKED); XKB_STATE_MODS_LOCKED);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment