diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-08-14 05:36:34 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-08-14 05:36:34 +0000 |
| commit | 9b65531d6a7f540b67ad87face1c911bb912a66c (patch) | |
| tree | 55d0c2580e05831e441622647e105ae40585552c /config.h | |
| parent | input: don't crash on mouse motion events on the render timer surface (diff) | |
| parent | doc: footrc: document modifiers in mouse bindings (diff) | |
Merge branch 'modifiers-in-mouse-bindings' into master
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 23 |
1 files changed, 20 insertions, 3 deletions
@@ -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 |
