summaryrefslogtreecommitdiff
path: root/src/binding.h
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2022-12-21 15:29:21 +0100
committerAlbert Cervin <albert@acervin.com>2022-12-21 15:29:21 +0100
commit690786504fce73edea78c7ec13b34771771e4caf (patch)
tree0a8927e6ab88bb5118eca569fdc4ae3593d7f178 /src/binding.h
parenta817e01bfe2356fdd860010d46db4e4361f343a6 (diff)
downloaddged-690786504fce73edea78c7ec13b34771771e4caf.tar.gz
dged-690786504fce73edea78c7ec13b34771771e4caf.tar.xz
dged-690786504fce73edea78c7ec13b34771771e4caf.zip
wip render rework
Diffstat (limited to 'src/binding.h')
-rw-r--r--src/binding.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/binding.h b/src/binding.h
index f00efed..bfde9fc 100644
--- a/src/binding.h
+++ b/src/binding.h
@@ -11,14 +11,14 @@ enum binding_type { BindingType_Command, BindingType_Keymap };
#define BINDING(mod_, c_, command_) \
(struct binding) { \
- .key = {.mod = mod_, .bytes[0] = c_, .nbytes = 1}, \
- .type = BindingType_Command, .command = hash_command_name(command_) \
+ .key = {.mod = mod_, .key = c_}, .type = BindingType_Command, \
+ .command = hash_command_name(command_) \
}
#define PREFIX(mod_, c_, keymap_) \
(struct binding) { \
- .key = {.mod = mod_, .bytes[0] = c_, .nbytes = 1}, \
- .type = BindingType_Keymap, .keymap = keymap_ \
+ .key = {.mod = mod_, .key = c_}, .type = BindingType_Keymap, \
+ .keymap = keymap_ \
}
struct binding {