From 64243ab05b1eb6edfd2ede98a318de7379b7dc2e Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Mon, 26 May 2008 11:42:02 +0100 Subject: slight changes --- dwm.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dwm.c b/dwm.c index 235365b..12ad997 100644 --- a/dwm.c +++ b/dwm.c @@ -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 -- cgit 1.4.1-2-gfad0 input type='submit' value='switch'/> Unnamed repository; edit this file 'description' to name the repository.
about summary refs log tree commit diff stats
path: root/LICENSE
blob: aa0a3abe98b24ac0fc1e123610ff1542a6fd56bb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21