summaryrefslogtreecommitdiffstats
path: root/commands.h
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-01-02 13:36:00 +0100
committerBert Münnich <ber.t@posteo.de>2014-01-02 14:13:08 +0100
commitb2eae528ed54c3ee1509e410686fabc1c7ecc0b4 (patch)
treebd00ae76f4cbe12d5c4e9aaac7a65f432b9d6312 /commands.h
parentab28c9a8b9240d032fa84d50b1858cf553b134d7 (diff)
downloadnsxiv-b2eae528ed54c3ee1509e410686fabc1c7ecc0b4.tar.zst
Proper support for Ctrl/Shift/Alt modifiers in key & mouse mappings
Diffstat (limited to 'commands.h')
-rw-r--r--commands.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/commands.h b/commands.h
index ba40eed..65c84e7 100644
--- a/commands.h
+++ b/commands.h
@@ -27,15 +27,14 @@ typedef void* arg_t;
typedef bool (*command_f)(arg_t);
typedef struct {
- bool ctrl;
+ unsigned int mask;
KeySym ksym;
command_f cmd;
arg_t arg;
} keymap_t;
typedef struct {
- bool ctrl;
- bool shift;
+ unsigned int mask;
unsigned int button;
command_f cmd;
arg_t arg;