comparison 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
comparison
equal deleted inserted replaced
78:0d71fb80b592 79:aabebd6e61f3
129 dc.w = textw(stext); 129 dc.w = textw(stext);
130 dc.x = bx + bw - dc.w; 130 dc.x = bx + bw - dc.w;
131 drawtext(stext, !istile, False); 131 drawtext(stext, !istile, False);
132 132
133 XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0); 133 XCopyArea(dpy, dc.drawable, barwin, dc.gc, 0, 0, bw, bh, 0, 0);
134 XFlush(dpy); 134 XSync(dpy, False);
135 } 135 }
136 136
137 void 137 void
138 drawtitle(Client *c) 138 drawtitle(Client *c)
139 { 139 {
161 } 161 }
162 } 162 }
163 dc.x += dc.w; 163 dc.x += dc.w;
164 dc.w = textw(c->name); 164 dc.w = textw(c->name);
165 drawtext(c->name, !istile, True); 165 drawtext(c->name, !istile, True);
166 XCopyArea(dpy, dc.drawable, c->title, dc.gc, 166 XCopyArea(dpy, dc.drawable, c->title, dc.gc, 0, 0, c->tw, c->th, 0, 0);
167 0, 0, c->tw, c->th, 0, 0); 167 XSync(dpy, False);
168 XFlush(dpy);
169 } 168 }
170 169
171 unsigned long 170 unsigned long
172 getcolor(const char *colstr) 171 getcolor(const char *colstr)
173 { 172 {