diff options
author | oga <oga> | 2008-06-25 22:40:27 +0000 |
---|---|---|
committer | oga <oga> | 2008-06-25 22:40:27 +0000 |
commit | a6ec6cd9e98d9ef0cb4a03daabd108d4f844592d (patch) | |
tree | ec8973f6f6ae0a03408bf6cd78ed6665649cc4e0 | |
parent | 05b17bf803f84fd7bc12c96a0eff32b515794253 (diff) | |
download | cwm-a6ec6cd9e98d9ef0cb4a03daabd108d4f844592d.tar.gz cwm-a6ec6cd9e98d9ef0cb4a03daabd108d4f844592d.tar.xz cwm-a6ec6cd9e98d9ef0cb4a03daabd108d4f844592d.zip |
Support mod4 (windows key) in mouse bindings too.
-rw-r--r-- | conf.c | 4 | ||||
-rw-r--r-- | cwmrc.5 | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/conf.c b/conf.c index 3078321..b519090 100644 --- a/conf.c +++ b/conf.c @@ -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) diff --git a/cwmrc.5 b/cwmrc.5 index 9a421ae..95df88a 100644 --- a/cwmrc.5 +++ b/cwmrc.5 @@ -15,7 +15,7 @@ .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" .\" The following requests are required for all man pages. -.Dd $Mdocdate: June 17 2008 $ +.Dd $Mdocdate: June 25 2008 $ .Dt CWMRC 5 .Os .Sh NAME @@ -141,6 +141,8 @@ The Control key. The Meta key. .It S The Shift key. +.It 4 +The Mod4 key (normally the windows key). .El .Pp The |