X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=main.c;h=5cf2738b26d393d6f59dabddb5d3a841fc025536;hp=935d8605d4fa5a64f7176ed0ff5a9b35b1f50e4c;hb=f60c597d653bd7eab6c620fc53d732ca75f6a880;hpb=c09bf8da071e05e2c1d714f0d31d41fe944bc11b 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[]) XSetErrorHandler(xerrorstart); /* this causes an error if some other WM is running */ XSelectInput(dpy, root, SubstructureRedirectMask); - XFlush(dpy); + XSync(dpy, False); if(otherwm) eprint("dwm: another window manager is already running\n"); - XSetErrorHandler(0); + XSetErrorHandler(NULL); xerrorxlib = XSetErrorHandler(xerror); /* init atoms */