summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.c b/main.c
index 935d860..5cf2738 100644
--- a/main.c
+++ b/main.c
@@ -204,12 +204,12 @@ main(int argc, char *argv[])
204 XSetErrorHandler(xerrorstart); 204 XSetErrorHandler(xerrorstart);
205 /* this causes an error if some other WM is running */ 205 /* this causes an error if some other WM is running */
206 XSelectInput(dpy, root, SubstructureRedirectMask); 206 XSelectInput(dpy, root, SubstructureRedirectMask);
207 XFlush(dpy); 207 XSync(dpy, False);
208 208
209 if(otherwm) 209 if(otherwm)
210 eprint("dwm: another window manager is already running\n"); 210 eprint("dwm: another window manager is already running\n");
211 211
212 XSetErrorHandler(0); 212 XSetErrorHandler(NULL);
213 xerrorxlib = XSetErrorHandler(xerror); 213 xerrorxlib = XSetErrorHandler(xerror);
214 214
215 /* init atoms */ 215 /* init atoms */