aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authoroga2008-06-25 22:38:36 +0000
committeroga2008-06-25 22:38:36 +0000
commit329c7cd89ef06e89fb1afd4930167e148636aa64 (patch)
treefeb0ce0ca786ca51acd1a9a865487c728a0149d8 /conf.c
parentea467dcc7c2dd8a6ac0a086decb3ac3809156bcc (diff)
downloadcwm-329c7cd89ef06e89fb1afd4930167e148636aa64.tar.gz
Support shift in mouse bindings. There's really no reason not to.
tested by johan@ and todd@.
Diffstat (limited to '')
-rw-r--r--conf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index 9947d8d..f3fa60a 100644
--- a/conf.c
+++ b/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)