diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-06-25 22:38:37 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-06-25 22:38:37 +0000 |
commit | 3813bdb515b134f2caf6c83af9bb444f17eb1aae (patch) | |
tree | b081716d9e098884d8d44849131fb15b7f0269b6 /app | |
parent | f0838c5278d5708f93cd3c5df424f634f7c03ccf (diff) |
Support shift in mouse bindings. There's really no reason not to.
tested by johan@ and todd@.
Diffstat (limited to 'app')
-rw-r--r-- | app/cwm/conf.c | 6 | ||||
-rw-r--r-- | app/cwm/cwmrc.5 | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c index 9947d8db8..f3fa60aa1 100644 --- a/app/cwm/conf.c +++ b/app/cwm/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: conf.c,v 1.43 2008/06/25 22:37:29 oga Exp $ + * $Id: conf.c,v 1.44 2008/06/25 22:38:36 oga Exp $ */ #include "headers.h" @@ -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) diff --git a/app/cwm/cwmrc.5 b/app/cwm/cwmrc.5 index 452e9c1c9..3d7ec0c78 100644 --- a/app/cwm/cwmrc.5 +++ b/app/cwm/cwmrc.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: cwmrc.5,v 1.11 2008/06/17 23:46:49 okan Exp $ +.\" $OpenBSD: cwmrc.5,v 1.12 2008/06/25 22:38:36 oga Exp $ .\" .\" Copyright (c) 2004,2005 Marius Aamodt Eriksen <marius@monkey.org> .\" @@ -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 @@ -139,6 +139,8 @@ The following modifiers are recognised: The Control key. .It M The Meta key. +.It S +The Shift key. .El .Pp The |