X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=draw.c;h=b8cfffd21d0d1129b1278c7428d85d0d21180ea4;hb=789717d109016279bd541efe5b72899fbcf68335;hp=1c6613f3249009eebf0c3256b8a2fca8de5f4924;hpb=c09bf8da071e05e2c1d714f0d31d41fe944bc11b;p=dwm.git diff --git a/draw.c b/draw.c index 1c6613f..b8cfffd 100644 --- a/draw.c +++ b/draw.c @@ -8,7 +8,7 @@ #include #include -/* static functions */ +/* static */ static void drawborder(void) @@ -90,7 +90,7 @@ drawtext(const char *text, Bool invert, Bool border) } } -/* extern functions */ +/* extern */ void drawall() @@ -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