aewl

diff draw.c @ 79:aabebd6e61f3

fixed XSync handling and finished man page
author Anselm R. Garbe <garbeam@wmii.de>
date Sat, 15 Jul 2006 18:51:44 +0200
parents 38c8f7f7d401
children 052fe7498930
line diff
     1.1 --- a/draw.c	Sat Jul 15 18:11:14 2006 +0200
     1.2 +++ b/draw.c	Sat Jul 15 18:51:44 2006 +0200
     1.3 @@ -131,7 +131,7 @@
     1.4  	drawtext(stext, !istile, False);
     1.5  
     1.6  	XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
     1.7 -	XFlush(dpy);
     1.8 +	XSync(dpy, False);
     1.9  }
    1.10  
    1.11  void
    1.12 @@ -163,9 +163,8 @@
    1.13  	dc.x += dc.w;
    1.14  	dc.w = textw(c->name);
    1.15  	drawtext(c->name, !istile, True);
    1.16 -	XCopyArea(dpy, dc.drawable, c->title, dc.gc,
    1.17 -			0, 0, c->tw, c->th, 0, 0);
    1.18 -	XFlush(dpy);
    1.19 +	XCopyArea(dpy, dc.drawable, c->title, dc.gc, 0, 0, c->tw, c->th, 0, 0);
    1.20 +	XSync(dpy, False);
    1.21  }
    1.22  
    1.23  unsigned long