summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-10 10:27:08 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-10 10:27:08 +0200
commit30561a0161629b15abe1beeb97eec3fc0768efaf (patch)
treefb9aacdc7d549f044650da4c4ff820815f617b3e
parentswapping my default colors (bg with fg) (diff)
downloaddwm-30561a0161629b15abe1beeb97eec3fc0768efaf.tar.gz
dwm-30561a0161629b15abe1beeb97eec3fc0768efaf.zip
removed unnecessary border color
Diffstat (limited to '')
-rw-r--r--config.arg.h1
-rw-r--r--config.default.h1
-rw-r--r--draw.c21
-rw-r--r--dwm.h1
-rw-r--r--main.c1
5 files changed, 0 insertions, 25 deletions
diff --git a/config.arg.h b/config.arg.h
index ae27c26..cc3ee20 100644
--- a/config.arg.h
+++ b/config.arg.h
@@ -11,7 +11,6 @@ const char *tags[] = { "work", "net", "fnord", NULL };
11#define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*" 11#define FONT "-*-terminus-medium-*-*-*-12-*-*-*-*-*-iso10646-*"
12#define BGCOLOR "#eeeeee" 12#define BGCOLOR "#eeeeee"
13#define FGCOLOR "#666699" 13#define FGCOLOR "#666699"
14#define BORDERCOLOR "#9999CC"
15#define MODKEY Mod1Mask 14#define MODKEY Mod1Mask
16#define NUMLOCKMASK Mod2Mask 15#define NUMLOCKMASK Mod2Mask
17#define MASTERW 60 /* percent */ 16#define MASTERW 60 /* percent */
diff --git a/config.default.h b/config.default.h
index 3847ff8..9ce11fd 100644
--- a/config.default.h
+++ b/config.default.h
@@ -11,7 +11,6 @@ const char *tags[] = { "0", "1", "2", "3", "4", NULL };
11#define FONT "fixed" 11#define FONT "fixed"
12#define BGCOLOR "#666699" 12#define BGCOLOR "#666699"
13#define FGCOLOR "#eeeeee" 13#define FGCOLOR "#eeeeee"
14#define BORDERCOLOR "#9999CC"
15#define MODKEY Mod1Mask 14#define MODKEY Mod1Mask
16#define NUMLOCKMASK Mod2Mask 15#define NUMLOCKMASK Mod2Mask
17#define MASTERW 60 /* percent */ 16#define MASTERW 60 /* percent */
diff --git a/draw.c b/draw.c
index 5d19bfb..812f398 100644
--- a/draw.c
+++ b/draw.c
@@ -9,26 +9,6 @@
9 9
10/* static */ 10/* static */
11 11
12static void
13drawborder(void)
14{
15 XPoint points[5];
16
17 XSetLineAttributes(dpy, dc.gc, 1, LineSolid, CapButt, JoinMiter);
18 XSetForeground(dpy, dc.gc, dc.border);
19 points[0].x = dc.x;
20 points[0].y = dc.y;
21 points[1].x = dc.w - 1;
22 points[1].y = 0;
23 points[2].x = 0;
24 points[2].y = dc.h - 1;
25 points[3].x = -(dc.w - 1);
26 points[3].y = 0;
27 points[4].x = 0;
28 points[4].y = -(dc.h - 1);
29 XDrawLines(dpy, dc.drawable, dc.gc, points, 5, CoordModePrevious);
30}
31
32static unsigned int 12static unsigned int
33textnw(const char *text, unsigned int len) 13textnw(const char *text, unsigned int len)
34{ 14{
@@ -52,7 +32,6 @@ drawtext(const char *text, Bool invert)
52 32
53 XSetForeground(dpy, dc.gc, invert ? dc.fg : dc.bg); 33 XSetForeground(dpy, dc.gc, invert ? dc.fg : dc.bg);
54 XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1); 34 XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
55 drawborder();
56 35
57 if(!text) 36 if(!text)
58 return; 37 return;
diff --git a/dwm.h b/dwm.h
index 88640b8..78a984e 100644
--- a/dwm.h
+++ b/dwm.h
@@ -43,7 +43,6 @@ struct DC { /* draw context */
43 int x, y, w, h; 43 int x, y, w, h;
44 unsigned long bg; 44 unsigned long bg;
45 unsigned long fg; 45 unsigned long fg;
46 unsigned long border;
47 Drawable drawable; 46 Drawable drawable;
48 Fnt font; 47 Fnt font;
49 GC gc; 48 GC gc;
diff --git a/main.c b/main.c
index 5efe599..534402c 100644
--- a/main.c
+++ b/main.c
@@ -217,7 +217,6 @@ main(int argc, char *argv[])
217 /* style */ 217 /* style */
218 dc.bg = getcolor(BGCOLOR); 218 dc.bg = getcolor(BGCOLOR);
219 dc.fg = getcolor(FGCOLOR); 219 dc.fg = getcolor(FGCOLOR);
220 dc.border = getcolor(BORDERCOLOR);
221 setfont(FONT); 220 setfont(FONT);
222 221
223 sx = sy = 0; 222 sx = sy = 0;