Support mod4 (windows key) in mouse bindings too.

This commit is contained in:
oga
2008-06-25 22:40:27 +00:00
parent 05b17bf803
commit a6ec6cd9e9
2 changed files with 7 additions and 1 deletions

4
conf.c
View File

@ -434,6 +434,10 @@ conf_mousebind(struct conf *c, char *name, char *binding)
strchr(name, 'S') < strchr(name, '-'))
current_binding->modmask |= ShiftMask;
if (strchr(name, '4') != NULL &&
strchr(name, '4') < strchr(name, '-'))
current_binding->modmask |= Mod4Mask;
substring = strchr(name, '-') + 1;
if (strchr(name, '-') == NULL)