about summary refs log tree commit diff stats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-14 15:11:02 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-14 15:11:02 +0200
commit2ffdc1936cf13af5df0cc6d9415961dbe13b9cf8 (patch)
tree4409e43ea13ef9540ad320cbfe61c53c6bd84a8b /event.c
parent0fe52c63ea9382a940afa7573993218ead14c2cf (diff)
downloaddwm-2ffdc1936cf13af5df0cc6d9415961dbe13b9cf8.tar.gz
some other small fixes
Diffstat (limited to 'event.c')
-rw-r--r--event.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/event.c b/event.c
index e5ca166..881d41a 100644
--- a/event.c
+++ b/event.c
@@ -254,13 +254,15 @@ keypress(XEvent *e)
 	XKeyEvent *ev = &e->xkey;
 
 	keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
-	for(i = 0; i < len; i++)
+	for(i = 0; i < len; i++) {
 		if(keysym == key[i].keysym &&
-				CLEANMASK(key[i].mod) == CLEANMASK(ev->state)) {
+				CLEANMASK(key[i].mod) == CLEANMASK(ev->state))
+		{
 			if(key[i].func)
 				key[i].func(&key[i].arg);
 			return;
 		}
+	}
 }
 
 static void