about summary refs log tree commit diff stats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-05-26 11:42:02 +0100
committerAnselm R Garbe <garbeam@gmail.com>2008-05-26 11:42:02 +0100
commit64243ab05b1eb6edfd2ede98a318de7379b7dc2e (patch)
tree1d30670424fc599321d7c5b9306c670390873e00 /dwm.c
parent32c5046635da102dd3b6789462234e3147b190ab (diff)
downloaddwm-64243ab05b1eb6edfd2ede98a318de7379b7dc2e.tar.gz
slight changes
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/dwm.c b/dwm.c
index 235365b..12ad997 100644
--- a/dwm.c
+++ b/dwm.c
@@ -349,7 +349,6 @@ checkotherwm(void) {
 	XSync(dpy, False);
 	if(otherwm)
 		eprint("dwm: another window manager is already running\n");
-	XSync(dpy, False);
 	XSetErrorHandler(NULL);
 	xerrorxlib = XSetErrorHandler(xerror);
 	XSync(dpy, False);
@@ -875,11 +874,9 @@ keypress(XEvent *e) {
 	keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
 	for(i = 0; i < LENGTH(keys); i++)
 		if(keysym == keys[i].keysym
-		&& CLEANMASK(keys[i].mod) == CLEANMASK(ev->state))
-		{
-			if(keys[i].func)
-				keys[i].func(keys[i].arg);
-		}
+		   && CLEANMASK(keys[i].mod) == CLEANMASK(ev->state)
+		   && keys[i].func)
+			keys[i].func(keys[i].arg);
 }
 
 void
=5a6601aba973ba1d1ef30b7b64438c25623b89c5'>^
96838051 ^










7a583220 ^
96838051 ^














7dac9ade ^
96838051 ^






































































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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121