diff options
author | garbeam@gmail.com <unknown> | 2011-10-29 10:59:34 +0200 |
---|---|---|
committer | garbeam@gmail.com <unknown> | 2011-10-29 10:59:34 +0200 |
commit | 3b104416d350f25db098d6c8dc9ddff11311e065 (patch) | |
tree | 4149eab911866f7de56277280d1016570e6e527f /surf.c | |
parent | 62f54a3745f193223def1c14a19a8581af1c00ed (diff) | |
download | surf-3b104416d350f25db098d6c8dc9ddff11311e065.tar.gz surf-3b104416d350f25db098d6c8dc9ddff11311e065.tar.bz2 surf-3b104416d350f25db098d6c8dc9ddff11311e065.zip |
added 20h's patch of 8 Sep 2011 to surf, thanks
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_MOD2_MASK)) enum { AtomFind, AtomGo, AtomUri, AtomLast }; @@ -345,7 +344,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(ev->state) == keys[i].mod + && (ev->state & keys[i].mod) == keys[i].mod && keys[i].func) { keys[i].func(c, &(keys[i].arg)); processed = TRUE; |