aboutsummaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-14 05:36:34 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-14 05:36:34 +0000
commit9b65531d6a7f540b67ad87face1c911bb912a66c (patch)
tree55d0c2580e05831e441622647e105ae40585552c /config.h
parentinput: don't crash on mouse motion events on the render timer surface (diff)
parentdoc: footrc: document modifiers in mouse bindings (diff)
Merge branch 'modifiers-in-mouse-bindings' into master
Diffstat (limited to 'config.h')
-rw-r--r--config.h23
1 files changed, 20 insertions, 3 deletions
diff --git a/config.h b/config.h
index 7963aee7..fac5ea89 100644
--- a/config.h
+++ b/config.h
@@ -15,18 +15,35 @@ struct config_font {
int px_size;
};
+struct config_key_modifiers {
+ bool shift;
+ bool alt;
+ bool ctrl;
+ bool meta;
+};
+
struct config_key_binding_normal {
enum bind_action_normal action;
- char *key;
+ struct config_key_modifiers modifiers;
+ xkb_keysym_t sym;
struct {
char *cmd;
char **argv;
+ bool master_copy;
} pipe;
};
struct config_key_binding_search {
enum bind_action_search action;
- char *key;
+ struct config_key_modifiers modifiers;
+ xkb_keysym_t sym;
+};
+
+struct config_mouse_binding {
+ enum bind_action_normal action;
+ struct config_key_modifiers modifiers;
+ int button;
+ int count;
};
struct config {
@@ -91,7 +108,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