[hackers] [wmii] Filter out modifiers key modifiers beyond Mod5 in wimenu. Closes issue #156. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Sun, 8 Nov 2009 21:32:04 +0000 (UTC)

changeset: 2590:8b73e587b951
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Sun Nov 08 16:31:43 2009 -0500
files: cmd/menu/keys.c
description:
Filter out modifiers key modifiers beyond Mod5 in wimenu. Closes issue #156.

diff -r 27a77f752ab9 -r 8b73e587b951 cmd/menu/keys.c
--- a/cmd/menu/keys.c Sun Nov 08 16:13:57 2009 -0500
+++ b/cmd/menu/keys.c Sun Nov 08 16:31:43 2009 -0500
@@ -82,7 +82,7 @@
         if(!strcmp(key, "ISO_Left_Tab"))
                 key = "Tab";
 
- mask &= ~(numlock | LockMask);
+ mask &= ~(numlock | LockMask) & ((1<<8) - 1);
         for(k=bindings; k; k=k->next)
                 if(!strcasecmp(k->key, key) && k->mask == mask)
                         return k->action;
Received on Sun Nov 08 2009 - 21:32:04 UTC

This archive was generated by hypermail 2.2.0 : Sun Nov 08 2009 - 21:36:06 UTC