summary refs log tree commit diff
diff options
context:
space:
mode:
authoroga <oga>2008-06-25 22:38:36 +0000
committeroga <oga>2008-06-25 22:38:36 +0000
commit05b17bf803f84fd7bc12c96a0eff32b515794253 (patch)
tree1ae66a59e3bc44d67729db7b0793c4faf3b02428
parent2dfd021f8bd4298624d10b18969e52032a198a6a (diff)
downloadcwm-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@.
-rw-r--r--conf.c4
-rw-r--r--cwmrc.52
2 files changed, 6 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)
diff --git a/cwmrc.5 b/cwmrc.5
index fe2f205..9a421ae 100644
--- a/cwmrc.5
+++ b/cwmrc.5
@@ -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