[hackers] [surf] Reverting the cleanmask change. || Christoph Lohmann

From: <hg_AT_suckless.org>
Date: Sun, 14 Oct 2012 07:20:45 +0200 (CEST)

changeset: 250:8ac49913fe14
tag: tip
user: Christoph Lohmann <20h_AT_r-36.net>
date: Sun Oct 14 07:17:45 2012 +0200
files: surf.c
description:
Reverting the cleanmask change.


diff -r 4c04d7e45df0 -r 8ac49913fe14 surf.c
--- a/surf.c Sat Oct 13 12:06:26 2012 +0200
+++ b/surf.c Sun Oct 14 07:17:45 2012 +0200
_AT_@ -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 };
 
_AT_@ -381,7 +380,7 @@
         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;
Received on Sun Oct 14 2012 - 07:20:45 CEST

This archive was generated by hypermail 2.3.0 : Sun Oct 14 2012 - 07:24:06 CEST