[hackers] [surf] added 20h's patch of 8 Sep 2011 to surf, thanks || garbeam
changeset: 225:46a72ccc435f
tag: tip
user: garbeam_AT_gmail.com
date: Sat Oct 29 10:59:34 2011 +0200
files: surf.c
description:
added 20h's patch of 8 Sep 2011 to surf, thanks
diff -r 2533f186089d -r 46a72ccc435f surf.c
--- a/surf.c Thu Mar 31 12:52:35 2011 +0200
+++ b/surf.c Sat Oct 29 10:59:34 2011 +0200
_AT_@ -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 };
_AT_@ -345,7 +344,7 @@
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;
Received on Sat Oct 29 2011 - 10:59:18 CEST
This archive was generated by hypermail 2.3.0
: Sat Oct 29 2011 - 11:00:25 CEST