tReverting the cleanmask change. - surf - customized build of surf, the suckles… | |
git clone git://src.adamsgaard.dk/surf | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 85d9d92e0b67a66d1524c565acf085affa0d89bb | |
parent de3ed01386c8ec1d2e767760262b84163d44290f | |
Author: Christoph Lohmann <[email protected]> | |
Date: Sun, 14 Oct 2012 07:17:45 +0200 | |
Reverting the cleanmask change. | |
Diffstat: | |
M surf.c | 3 +-- | |
1 file changed, 1 insertion(+), 2 deletions(-) | |
--- | |
diff --git a/surf.c b/surf.c | |
t@@ -21,7 +21,6 @@ | |
#include <sys/file.h> | |
#define LENGTH(x) (sizeof x / sizeof x[0]) | |
-#define CLEANMASK(mask) (mask & (GDK_SHIFT_MASK|GDK_CONTROL_MASK|GDK_M… | |
enum { AtomFind, AtomGo, AtomUri, AtomLast }; | |
t@@ -381,7 +380,7 @@ keypress(GtkWidget* w, GdkEventKey *ev, Client *c) { | |
updatewinid(c); | |
for(i = 0; i < LENGTH(keys); i++) { | |
if(gdk_keyval_to_lower(ev->keyval) == keys[i].keyval | |
- && CLEANMASK(keys[i].mod) == CLEANMASK(ev->sta… | |
+ && (ev->state & keys[i].mod) == keys[i].mod | |
&& keys[i].func) { | |
keys[i].func(c, &(keys[i].arg)); | |
processed = TRUE; |