diff options
author | Christoph Lohmann <20h@r-36.net> | 2012-10-14 07:17:45 +0200 |
---|---|---|
committer | Christoph Lohmann <20h@r-36.net> | 2012-10-14 07:17:45 +0200 |
commit | 85d9d92e0b67a66d1524c565acf085affa0d89bb (patch) | |
tree | 17a67174c09c7ed93b0ae311a3270f77d7d79770 /surf.c | |
parent | de3ed01386c8ec1d2e767760262b84163d44290f (diff) | |
download | surf-85d9d92e0b67a66d1524c565acf085affa0d89bb.tar.gz surf-85d9d92e0b67a66d1524c565acf085affa0d89bb.tar.bz2 surf-85d9d92e0b67a66d1524c565acf085affa0d89bb.zip |
Reverting the cleanmask change.
Diffstat (limited to 'surf.c')
-rw-r--r-- | surf.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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_MOD1_MASK|GDK_MOD2_MASK|GDK_MOD3_MASK|GDK_MOD4_MASK|GDK_MOD5_MASK)) enum { AtomFind, AtomGo, AtomUri, AtomLast }; @@ -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->state) + && (ev->state & keys[i].mod) == keys[i].mod && keys[i].func) { keys[i].func(c, &(keys[i].arg)); processed = TRUE; |