bar.c 348 B

123456789101112131415161718
  1. /*
  2. * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
  3. * See LICENSE file for license details.
  4. */
  5. #include "wm.h"
  6. void
  7. draw_bar()
  8. {
  9. brush.rect = barrect;
  10. brush.rect.x = brush.rect.y = 0;
  11. draw(dpy, &brush, False, 0);
  12. XCopyArea(dpy, brush.drawable, barwin, brush.gc, 0, 0, barrect.width,
  13. barrect.height, 0, 0);
  14. XFlush(dpy);
  15. }