diff options
author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-15 18:51:44 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-15 18:51:44 +0200 |
commit | e6cbe9c11e88537d74eb094ba5844f71ee57f268 (patch) | |
tree | 7442199183f1d55086195a3076ff000c59e13a4d /draw.c | |
parent | f60c597d653bd7eab6c620fc53d732ca75f6a880 (diff) | |
download | dwm-e6cbe9c11e88537d74eb094ba5844f71ee57f268.tar.gz |
fixed XSync handling and finished man page
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/draw.c b/draw.c index 1c6613f..ec0e964 100644 --- a/draw.c +++ b/draw.c @@ -131,7 +131,7 @@ drawstatus() drawtext(stext, !istile, False); XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0); - XFlush(dpy); + XSync(dpy, False); } void @@ -163,9 +163,8 @@ drawtitle(Client *c) dc.x += dc.w; dc.w = textw(c->name); drawtext(c->name, !istile, True); - XCopyArea(dpy, dc.drawable, c->title, dc.gc, - 0, 0, c->tw, c->th, 0, 0); - XFlush(dpy); + XCopyArea(dpy, dc.drawable, c->title, dc.gc, 0, 0, c->tw, c->th, 0, 0); + XSync(dpy, False); } unsigned long |