diff options
author | oga <oga> | 2008-06-25 22:38:36 +0000 |
---|---|---|
committer | oga <oga> | 2008-06-25 22:38:36 +0000 |
commit | 05b17bf803f84fd7bc12c96a0eff32b515794253 (patch) | |
tree | 1ae66a59e3bc44d67729db7b0793c4faf3b02428 /conf.c | |
parent | 2dfd021f8bd4298624d10b18969e52032a198a6a (diff) | |
download | cwm-05b17bf803f84fd7bc12c96a0eff32b515794253.tar.gz cwm-05b17bf803f84fd7bc12c96a0eff32b515794253.tar.xz cwm-05b17bf803f84fd7bc12c96a0eff32b515794253.zip |
Support shift in mouse bindings. There's really no reason not to.
tested by johan@ and todd@.
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/conf.c b/conf.c index 1972287..3078321 100644 --- a/conf.c +++ b/conf.c @@ -430,6 +430,10 @@ conf_mousebind(struct conf *c, char *name, char *binding) strchr(name, 'M') < strchr(name, '-')) current_binding->modmask |= Mod1Mask; + if (strchr(name, 'S') != NULL && + strchr(name, 'S') < strchr(name, '-')) + current_binding->modmask |= ShiftMask; + substring = strchr(name, '-') + 1; if (strchr(name, '-') == NULL) |