keymap: use xkb_mod_mask_t for interpret->mods and modmap
authorRan Benita <ran234@gmail.com>
Sat, 6 Oct 2012 19:37:43 +0000 (21:37 +0200)
committerRan Benita <ran234@gmail.com>
Sat, 6 Oct 2012 19:42:42 +0000 (21:42 +0200)
These are both real modifier masks, but we keep this information only in
the program logic now so when we change it we don't have to worry about
the type.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/keymap.h

index 9734343..9ce61e4 100644 (file)
@@ -279,7 +279,7 @@ struct xkb_sym_interpret {
     xkb_keysym_t sym;
     bool repeat;
     enum xkb_match_operation match;
-    uint8_t mods;
+    xkb_mod_mask_t mods;
     xkb_mod_index_t virtual_mod;
     union xkb_action act;
 };
@@ -350,7 +350,7 @@ struct xkb_key {
 
     enum xkb_explicit_components explicit;
 
-    unsigned char modmap;
+    xkb_mod_mask_t modmap;
     xkb_mod_mask_t vmodmap;
 
     bool repeats;