summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-03-30 11:15:16 +0200
committerDanny Baumann <dannybaumann@web.de>2007-03-30 11:15:16 +0200
commit7d76b72bfe6348c01e355840d0b69dc5b2007f1c (patch)
tree88970f9e34188933fd40b3c046cf228c9a6e3b3d
parentea9973fe84f471141323f7e4fa7f0c33f4f23c4d (diff)
downloadberyl-bcop-7d76b72bfe6348c01e355840d0b69dc5b2007f1c.tar.gz
beryl-bcop-7d76b72bfe6348c01e355840d0b69dc5b2007f1c.tar.bz2
bcop: use keycodes for non-Beryl mode also for empty binding assignments
-rw-r--r--src/code_generator.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/code_generator.c b/src/code_generator.c
index 74a9d59..3b5de80 100644
--- a/src/code_generator.c
+++ b/src/code_generator.c
@@ -686,7 +686,12 @@ void addActionOption(Option *o)
data.uName,o->uName);
}
else
- addString(out,"\to->value.action.key.keysym = 0;\n");
+ {
+ if (data.mode == CodeBeryl)
+ addString(out,"\to->value.action.key.keysym = 0;\n");
+ else
+ addString(out,"\to->value.action.key.keycode = 0;\n");
+ }
}
if (o->data.asBind.smouse)