Commit 2abff2a0988a3a87d900e76b05d5bddd64a50f73

Ran Benita 2014-02-07T17:29:34

state: use the XKB_MOD_MASK constant Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/state.c b/src/state.c
index 768d47c..3f470b1 100644
--- a/src/state.c
+++ b/src/state.c
@@ -108,7 +108,7 @@ struct xkb_state {
      * < Left Shift down, Right Shift down, Left Shift Up >
      * the modifier should still be set. This keeps the count.
      */
-    int16_t mod_key_count[sizeof(xkb_mod_mask_t) * 8];
+    int16_t mod_key_count[XKB_MAX_MODS];
 
     int refcnt;
     darray(struct xkb_filter) filters;