Commit f531d1e16d17f73633ee2cada0ef0f3859b43c0e

Daniel Stone 2012-06-02T15:25:36

keymap-dump: Print NoAction actions too The failure mode here is a little irritating: - server loads map with ISO_Lock action - server dumps keymap to string, including: interpret ISO_Lock+AnyOfOrAll(None) { action= NoAction(); }; as we don't (yet) print ISO_Lock actions - client parses keymap from string - client dumps keymap to string, including: interpret ISO_Lock+AnyOfOrAll(None) { }; - this results in a syntax error Signed-off-by: Daniel Stone <daniel@fooishbar.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/keymap-dump.c b/src/keymap-dump.c
index 5dc8166..76b97f8 100644
--- a/src/keymap-dump.c
+++ b/src/keymap-dump.c
@@ -481,9 +481,6 @@ write_action(struct xkb_keymap *keymap, char **buf, size_t *size,
     if (!suffix)
         suffix = "";
 
-    if (action->any.type == XkbSA_NoAction)
-        return true;
-
     switch (action->any.type) {
     case XkbSA_SetMods:
         if (!type)