symbols: store actions from symbols in the right offset
authorRan Benita <ran234@gmail.com>
Thu, 13 Sep 2012 17:59:27 +0000 (20:59 +0300)
committerRan Benita <ran234@gmail.com>
Thu, 13 Sep 2012 18:09:48 +0000 (21:09 +0300)
This regression was introduced in 93ce9c7d4f7. This meant that actions
specified inside key {} statments were always going to the first group.
But actions are almost never specified in xkb_symbols so this wasn't
noticed.

Signed-off-by: Ran Benita <ran234@gmail.com>
src/xkbcomp/symbols.c

index 17b2eb7..0cfa71b 100644 (file)
@@ -1611,7 +1611,7 @@ CopySymbolsDef(SymbolsInfo *info, KeyInfo *keyi)
 
                 if (key->actions && leveli &&
                     leveli->act.type != ACTION_TYPE_NONE)
-                    key->actions[tmp] = leveli->act;
+                    key->actions[i * width + tmp] = leveli->act;
             }
         }
     }