summaryrefslogtreecommitdiffstats
path: root/nsxiv.h
diff options
context:
space:
mode:
authorN-R-K <79544946+N-R-K@users.noreply.github.com>2021-11-19 06:49:42 +0100
committerGitHub <noreply@github.com>2021-11-19 06:49:42 +0100
commit4a282da692fa7b8471c1399b30010de80448bda9 (patch)
treebb6b08180ee5598f5270f5e246cad1b784dbc6fa /nsxiv.h
parent8f6ba7b8689173889fc0229422f5f3bfaeea0923 (diff)
downloadnsxiv-4a282da692fa7b8471c1399b30010de80448bda9.tar.zst
use dedicated function to process key/button bindings (#166)
Co-authored-by: Arthur Williams <taaparthur@gmail.com>
Diffstat (limited to 'nsxiv.h')
-rw-r--r--nsxiv.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/nsxiv.h b/nsxiv.h
index e38460a..6c1f5f9 100644
--- a/nsxiv.h
+++ b/nsxiv.h
@@ -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 */