diff options
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 36 |
1 files changed, 24 insertions, 12 deletions
@@ -28,7 +28,7 @@ struct config_key_modifiers { bool shift; bool alt; bool ctrl; - bool meta; + bool super; }; struct argv { @@ -40,22 +40,34 @@ struct config_binding_pipe { bool master_copy; }; +enum config_key_binding_type { + KEY_BINDING, + MOUSE_BINDING, +}; + struct config_key_binding { int action; /* One of the varios bind_action_* enums from wayland.h */ struct config_key_modifiers modifiers; - xkb_keysym_t sym; - struct config_binding_pipe pipe; -}; -DEFINE_LIST(struct config_key_binding); + union { + /* Key bindings */ + struct { + xkb_keysym_t sym; + } k; + + /* Mouse bindings */ + struct { + int button; + int count; + } m; + }; -struct config_mouse_binding { - enum bind_action_normal action; - struct config_key_modifiers modifiers; - int button; - int count; struct config_binding_pipe pipe; + + /* For error messages in collision handling */ + const char *path; + int lineno; }; -DEFINE_LIST(struct config_mouse_binding); +DEFINE_LIST(struct config_key_binding); typedef tll(char *) config_override_t; @@ -199,7 +211,7 @@ struct config { struct { /* Bindings for "normal" mode */ struct config_key_binding_list key; - struct config_mouse_binding_list mouse; + struct config_key_binding_list mouse; /* * Special modes |
