slight changes

master
Anselm R Garbe 2008-05-26 11:42:02 +01:00
parent 32c5046635
commit 64243ab05b
1 changed files with 3 additions and 6 deletions

9
dwm.c
View File

@ -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