Proper support for Ctrl/Shift/Alt modifiers in key & mouse mappings

This commit is contained in:
Bert Münnich
2014-01-02 13:36:00 +01:00
parent ab28c9a8b9
commit b2eae528ed
4 changed files with 98 additions and 100 deletions

View File

@ -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;