dwm-meillo
diff event.c @ 275:425cd4490c1e
some other small fixes
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Mon, 14 Aug 2006 15:11:02 +0200 |
parents | 97e8cb712fd9 |
children | 9a0a351dd910 |
line diff
1.1 --- a/event.c Mon Aug 14 11:38:43 2006 +0200 1.2 +++ b/event.c Mon Aug 14 15:11:02 2006 +0200 1.3 @@ -254,13 +254,15 @@ 1.4 XKeyEvent *ev = &e->xkey; 1.5 1.6 keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0); 1.7 - for(i = 0; i < len; i++) 1.8 + for(i = 0; i < len; i++) { 1.9 if(keysym == key[i].keysym && 1.10 - CLEANMASK(key[i].mod) == CLEANMASK(ev->state)) { 1.11 + CLEANMASK(key[i].mod) == CLEANMASK(ev->state)) 1.12 + { 1.13 if(key[i].func) 1.14 key[i].func(&key[i].arg); 1.15 return; 1.16 } 1.17 + } 1.18 } 1.19 1.20 static void