diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-08-09 20:40:53 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-08-13 16:47:19 +0000 |
| commit | 544c1b1976544085a2f27497c5c516bf1d9edfa3 (patch) | |
| tree | 68df5e3b1c105d38c9a7bc8b9d5ea92b09b8b58c /config.h | |
| parent | render: oops... swprintf() needs to number of *chars*, not *bytes* (diff) | |
config: wip: add support for modifiers in mouse bindings
Mouse bindings can now include modifiers. They are specified in pretty
much the same way as in keyboard bindings:
Control+BTN_LEFT
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -17,16 +17,21 @@ struct config_font { struct config_key_binding_normal { enum bind_action_normal action; - char *key; + char *combos; struct { char *cmd; char **argv; } pipe; }; +struct config_mouse_binding { + enum bind_action_normal action; + char *combos; +}; + struct config_key_binding_search { enum bind_action_search action; - char *key; + char *combos; }; struct config { @@ -91,7 +96,7 @@ struct config { struct { /* Bindings for "normal" mode */ tll(struct config_key_binding_normal) key; - tll(struct mouse_binding) mouse; + tll(struct config_mouse_binding) mouse; /* * Special modes |
