slight changes
parent
32c5046635
commit
64243ab05b
7
dwm.c
7
dwm.c
|
@ -349,7 +349,6 @@ checkotherwm(void) {
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
if(otherwm)
|
if(otherwm)
|
||||||
eprint("dwm: another window manager is already running\n");
|
eprint("dwm: another window manager is already running\n");
|
||||||
XSync(dpy, False);
|
|
||||||
XSetErrorHandler(NULL);
|
XSetErrorHandler(NULL);
|
||||||
xerrorxlib = XSetErrorHandler(xerror);
|
xerrorxlib = XSetErrorHandler(xerror);
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
|
@ -875,12 +874,10 @@ keypress(XEvent *e) {
|
||||||
keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
|
keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
|
||||||
for(i = 0; i < LENGTH(keys); i++)
|
for(i = 0; i < LENGTH(keys); i++)
|
||||||
if(keysym == keys[i].keysym
|
if(keysym == keys[i].keysym
|
||||||
&& CLEANMASK(keys[i].mod) == CLEANMASK(ev->state))
|
&& CLEANMASK(keys[i].mod) == CLEANMASK(ev->state)
|
||||||
{
|
&& keys[i].func)
|
||||||
if(keys[i].func)
|
|
||||||
keys[i].func(keys[i].arg);
|
keys[i].func(keys[i].arg);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
killclient(const void *arg) {
|
killclient(const void *arg) {
|
||||||
|
|
Loading…
Reference in New Issue