Commit 3560bf7bf4ff34fec63cd5e5ad7fe8e1937d7a49

Daniel Stone 2012-03-15T08:36:09

Also update vmod -> indicator maps Signed-off-by: Daniel Stone <daniel@fooishbar.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/xkbcomp/compat.c b/src/xkbcomp/compat.c
index 932cc2f..fd80d8a 100644
--- a/src/xkbcomp/compat.c
+++ b/src/xkbcomp/compat.c
@@ -1100,6 +1100,10 @@ UpdateModifiersFromCompat(struct xkb_desc *xkb)
     }
 
     /* Update vmod -> indicator maps. */
+    for (i = 0; i < XkbNumIndicators; i++) {
+        struct xkb_mods *led = &xkb->indicators->maps[i].mods;
+        led->mask = led->real_mods | VModsToReal(xkb, led->vmods);
+    }
 
     return True;
 }