config: ‘pipe’ is now optional ‘aux’ data in the key-binding struct

This allows us to add helper functions that e.g. compare bindings’ aux
data in a generic way.
This commit is contained in:
Daniel Eklöf 2022-02-08 19:35:41 +01:00
parent 9814d96206
commit e5c5cd5478
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
5 changed files with 116 additions and 83 deletions

View file

@ -104,8 +104,6 @@ struct key_binding {
enum key_binding_type type;
int action; /* enum bind_action_* */
char **pipe_argv;
xkb_mod_mask_t mods;
union {
@ -120,6 +118,8 @@ struct key_binding {
} m;
};
const struct binding_aux *aux;
};
typedef tll(struct key_binding) key_binding_list_t;