summaryrefslogtreecommitdiffstats
path: root/bar.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-13 01:30:55 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-13 01:30:55 +0200
commit8b59083eb13c0712e04d9a5b6d7bf4af5913c442 (patch)
treec71ce38a84380cd619c6bf7c478dc68ae3c20f9a /bar.c
parentbefore leaning things up (diff)
downloaddwm-8b59083eb13c0712e04d9a5b6d7bf4af5913c442.tar.gz
dwm-8b59083eb13c0712e04d9a5b6d7bf4af5913c442.zip
removed unnecessary crap
Diffstat (limited to '')
-rw-r--r--bar.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/bar.c b/bar.c
deleted file mode 100644
index d9d8171..0000000
--- a/bar.c
+++ /dev/null
@@ -1,41 +0,0 @@
1/*
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
4 */
5
6#include "wm.h"
7
8void
9draw_bar()
10{
11 int i;
12 brush.x = brush.y = 0;
13 brush.w = bw;
14 brush.h = bh;
15 draw(dpy, &brush, False, NULL);
16
17 brush.w = 0;
18 for(i = 0; i < TLast; i++) {
19 brush.x += brush.w;
20 brush.w = textw(&brush.font, tags[i]) + bh;
21 if(i == tsel) {
22 swap((void **)&brush.fg, (void **)&brush.bg);
23 draw(dpy, &brush, True, tags[i]);
24 swap((void **)&brush.fg, (void **)&brush.bg);
25 }
26 else
27 draw(dpy, &brush, True, tags[i]);
28 }
29 if(stack) {
30 swap((void **)&brush.fg, (void **)&brush.bg);
31 brush.x += brush.w;
32 brush.w = textw(&brush.font, stack->name) + bh;
33 draw(dpy, &brush, True, stack->name);
34 swap((void **)&brush.fg, (void **)&brush.bg);
35 }
36 brush.w = textw(&brush.font, stext) + bh;
37 brush.x = bx + bw - brush.w;
38 draw(dpy, &brush, False, stext);
39 XCopyArea(dpy, brush.drawable, barwin, brush.gc, 0, 0, bw, bh, 0, 0);
40 XFlush(dpy);
41}