[mutter/wip/carlosg/native-numlock-fix: 1/2] backends: Fix thinko



commit 1be417c0bf095badd6da5ddf7a8e4af120593c6d
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Oct 7 19:13:23 2019 +0200

    backends: Fix thinko
    
    We are meant to pass a flagset there, not a boolean. Fixes state querying
    to the ClutterKeymap in the native backend.
    
    https://gitlab.gnome.org/GNOME/mutter/issues/769

 src/backends/native/meta-keymap-native.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/backends/native/meta-keymap-native.c b/src/backends/native/meta-keymap-native.c
index 35df9f373..683458f4e 100644
--- a/src/backends/native/meta-keymap-native.c
+++ b/src/backends/native/meta-keymap-native.c
@@ -62,7 +62,7 @@ meta_keymap_native_get_num_lock_state (ClutterKeymap *keymap)
 
   return xkb_state_mod_name_is_active (xkb_state,
                                        XKB_MOD_NAME_NUM,
-                                       XKB_STATE_MODS_LATCHED ||
+                                       XKB_STATE_MODS_LATCHED |
                                        XKB_STATE_MODS_LOCKED);
 }
 
@@ -78,7 +78,7 @@ meta_keymap_native_get_caps_lock_state (ClutterKeymap *keymap)
 
   return xkb_state_mod_name_is_active (xkb_state,
                                        XKB_MOD_NAME_CAPS,
-                                       XKB_STATE_MODS_LATCHED ||
+                                       XKB_STATE_MODS_LATCHED |
                                        XKB_STATE_MODS_LOCKED);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]