about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorarg@mig29 <unknown>2006-11-27 17:49:58 +0100
committerarg@mig29 <unknown>2006-11-27 17:49:58 +0100
commit19dcbc5717bdcef4bcb5be6966be7d86f88152d6 (patch)
treed54d971af96abc195ebd7c1669e4ae2e73a70788 /event.c
parentd2a4952956aa21a48ac40d7f650036682cb9d97d (diff)
downloaddwm-19dcbc5717bdcef4bcb5be6966be7d86f88152d6.tar.gz
returning to old Key struct
Diffstat (limited to 'event.c')
-rw-r--r--event.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/event.c b/event.c
index 45a21a6..edfcc52 100644
--- a/event.c
+++ b/event.c
@@ -11,7 +11,7 @@
 typedef struct {
 	unsigned long mod;
 	KeySym keysym;
-	void (*func[NFUNCS])(Arg *arg);
+	void (*func)(Arg *arg);
 	Arg arg;
 } Key;
 
@@ -245,7 +245,7 @@ expose(XEvent *e) {
 static void
 keypress(XEvent *e) {
 	static unsigned int len = sizeof key / sizeof key[0];
-	unsigned int i, j;
+	unsigned int i;
 	KeySym keysym;
 	XKeyEvent *ev = &e->xkey;
 
@@ -254,9 +254,8 @@ keypress(XEvent *e) {
 		if(keysym == key[i].keysym
 			&& CLEANMASK(key[i].mod) == CLEANMASK(ev->state))
 		{
-			for(j = 0; j < NFUNCS; j++)
-				if(key[i].func[j])
-					key[i].func[j](&key[i].arg);
+			if(key[i].func)
+				key[i].func(&key[i].arg);
 			return;
 		}
 	}
0200 added gridmenu' href='/acidbong/suckless/dwm/commit/Makefile?h=2.5&id=dbf7e03996032a6def3b8e97468b78d6da9e8c88'>dbf7e03 ^
1076f2b



42277b1 ^
5d3fd37 ^
a2d56f6 ^
99b126d ^

1076f2b
650a1fb ^
1076f2b
95766d6 ^
82064af ^
1076f2b

4d55eee ^
db876f9 ^
dbf7e03 ^

4d55eee ^






dbf7e03 ^

4d55eee ^
dbf7e03 ^
4d55eee ^


dbf7e03 ^
d9386a0 ^
4d55eee ^
dbf7e03 ^

4d55eee ^



dc5c070 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62