From f531d1e16d17f73633ee2cada0ef0f3859b43c0e Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Sat, 2 Jun 2012 15:25:36 +0100 Subject: [PATCH] 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 --- src/keymap-dump.c | 3 --- 1 file changed, 3 deletions(-) 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) -- 2.7.4