mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
Support shift in mouse bindings. There's really no reason not to.
tested by johan@ and todd@.
This commit is contained in:
parent
2dfd021f8b
commit
05b17bf803
4
conf.c
4
conf.c
@ -430,6 +430,10 @@ conf_mousebind(struct conf *c, char *name, char *binding)
|
|||||||
strchr(name, 'M') < strchr(name, '-'))
|
strchr(name, 'M') < strchr(name, '-'))
|
||||||
current_binding->modmask |= Mod1Mask;
|
current_binding->modmask |= Mod1Mask;
|
||||||
|
|
||||||
|
if (strchr(name, 'S') != NULL &&
|
||||||
|
strchr(name, 'S') < strchr(name, '-'))
|
||||||
|
current_binding->modmask |= ShiftMask;
|
||||||
|
|
||||||
substring = strchr(name, '-') + 1;
|
substring = strchr(name, '-') + 1;
|
||||||
|
|
||||||
if (strchr(name, '-') == NULL)
|
if (strchr(name, '-') == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user