diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-05-26 11:42:02 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-05-26 11:42:02 +0100 |
commit | 64243ab05b1eb6edfd2ede98a318de7379b7dc2e (patch) | |
tree | 1d30670424fc599321d7c5b9306c670390873e00 /dwm.c | |
parent | 32c5046635da102dd3b6789462234e3147b190ab (diff) | |
download | dwm-64243ab05b1eb6edfd2ede98a318de7379b7dc2e.tar.gz |
slight changes
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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 |