pinosaur
/
dwm.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
slight change to dwm.1
[dwm.git]
/
main.c
diff --git
a/main.c
b/main.c
index
935d860
..
2d132a5
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-131,7
+131,7
@@
sendevent(Window w, Atom a, long value)
e.xclient.data.l[0] = value;
e.xclient.data.l[1] = CurrentTime;
XSendEvent(dpy, w, False, NoEventMask, &e);
e.xclient.data.l[0] = value;
e.xclient.data.l[1] = CurrentTime;
XSendEvent(dpy, w, False, NoEventMask, &e);
- X
Flush(dpy
);
+ X
Sync(dpy, False
);
}
void
}
void
@@
-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);
XSetErrorHandler(xerrorstart);
/* this causes an error if some other WM is running */
XSelectInput(dpy, root, SubstructureRedirectMask);
- X
Flush(dpy
);
+ X
Sync(dpy, False
);
if(otherwm)
eprint("dwm: another window manager is already running\n");
if(otherwm)
eprint("dwm: another window manager is already running\n");
- XSetErrorHandler(
0
);
+ XSetErrorHandler(
NULL
);
xerrorxlib = XSetErrorHandler(xerror);
/* init atoms */
xerrorxlib = XSetErrorHandler(xerror);
/* init atoms */