use dedicated function to process key/button bindings (#166)

Co-authored-by: Arthur Williams <taaparthur@gmail.com>
This commit is contained in:
N-R-K
2021-11-19 11:49:42 +06:00
committed by GitHub
parent 8f6ba7b868
commit 4a282da692
2 changed files with 24 additions and 29 deletions

View File

@ -172,17 +172,12 @@ typedef struct {
typedef struct {
unsigned int mask;
KeySym ksym;
KeySym ksym_or_button;
cmd_t cmd;
arg_t arg;
} keymap_t;
typedef struct {
unsigned int mask;
unsigned int button;
cmd_t cmd;
arg_t arg;
} button_t;
typedef keymap_t button_t;
/* image.c */