aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-09 20:40:53 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-13 16:47:19 +0000
commit544c1b1976544085a2f27497c5c516bf1d9edfa3 (patch)
tree68df5e3b1c105d38c9a7bc8b9d5ea92b09b8b58c /config.h
parentrender: 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.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/config.h b/config.h
index 7963aee7..e8a06483 100644
--- a/config.h
+++ b/config.h
@@ -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