comparison client.c @ 33:e90449e03167

new stuff (some warning elimination)
author Anselm R. Garbe <garbeam@wmii.de>
date Thu, 13 Jul 2006 01:55:54 +0200
parents 082c75b937b5
children cd30cce52b78
comparison
equal deleted inserted replaced
32:082c75b937b5 33:e90449e03167
358 XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&e); 358 XSendEvent(dpy, c->win, False, StructureNotifyMask, (XEvent *)&e);
359 XFlush(dpy); 359 XFlush(dpy);
360 } 360 }
361 361
362 static int 362 static int
363 dummy_error_handler(Display *dpy, XErrorEvent *error) 363 dummy_error_handler(Display *dsply, XErrorEvent *err)
364 { 364 {
365 return 0; 365 return 0;
366 } 366 }
367 367
368 void 368 void
423 brush.w = 0; 423 brush.w = 0;
424 for(i = 0; i < TLast; i++) { 424 for(i = 0; i < TLast; i++) {
425 if(c->tags[i]) { 425 if(c->tags[i]) {
426 brush.x += brush.w; 426 brush.x += brush.w;
427 brush.w = textw(&brush.font, c->tags[i]) + brush.font.height; 427 brush.w = textw(&brush.font, c->tags[i]) + brush.font.height;
428 draw(dpy, &brush, True, c->tags[i]); 428 draw(&brush, True, c->tags[i]);
429 } 429 }
430 } 430 }
431 brush.x += brush.w; 431 brush.x += brush.w;
432 brush.w = textw(&brush.font, c->name) + brush.font.height; 432 brush.w = textw(&brush.font, c->name) + brush.font.height;
433 draw(dpy, &brush, True, c->name); 433 draw(&brush, True, c->name);
434 XCopyArea(dpy, brush.drawable, c->title, brush.gc, 434 XCopyArea(dpy, brush.drawable, c->title, brush.gc,
435 0, 0, c->tw, c->th, 0, 0); 435 0, 0, c->tw, c->th, 0, 0);
436 XFlush(dpy); 436 XFlush(dpy);
437 } 437 }