1
0
mirror of git://git.suckless.org/dwm synced 2025-07-26 09:42:11 -07:00

changing XFlush into XSync

This commit is contained in:
Anselm R. Garbe
2006-07-15 18:11:14 +02:00
parent c09bf8da07
commit f60c597d65
4 changed files with 11 additions and 6 deletions

4
main.c
View File

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