aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authoroga2008-06-25 22:40:27 +0000
committeroga2008-06-25 22:40:27 +0000
commit0ffce5f79391bc8249c6c8387da842fbadc8928d (patch)
treeee37c77b7867cd7d9f849eed8a6be94aef1a8f0f /conf.c
parent329c7cd89ef06e89fb1afd4930167e148636aa64 (diff)
downloadcwm-0ffce5f79391bc8249c6c8387da842fbadc8928d.tar.gz
Support mod4 (windows key) in mouse bindings too.
Diffstat (limited to 'conf.c')
-rw-r--r--conf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/conf.c b/conf.c
index f3fa60a..d259365 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.44 2008/06/25 22:38:36 oga Exp $
+ * $Id: conf.c,v 1.45 2008/06/25 22:40:27 oga Exp $
*/
#include "headers.h"
@@ -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)