diff options
| author | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-10 10:27:08 +0200 |
|---|---|---|
| committer | Anselm R.Garbe <arg@10ksloc.org> | 2006-08-10 10:27:08 +0200 |
| commit | 30561a0161629b15abe1beeb97eec3fc0768efaf (patch) | |
| tree | fb9aacdc7d549f044650da4c4ff820815f617b3e | |
| parent | swapping my default colors (bg with fg) (diff) | |
| download | dwm-30561a0161629b15abe1beeb97eec3fc0768efaf.tar.gz dwm-30561a0161629b15abe1beeb97eec3fc0768efaf.zip | |
removed unnecessary border color
Diffstat (limited to '')
| -rw-r--r-- | config.arg.h | 1 | ||||
| -rw-r--r-- | config.default.h | 1 | ||||
| -rw-r--r-- | draw.c | 21 | ||||
| -rw-r--r-- | dwm.h | 1 | ||||
| -rw-r--r-- | main.c | 1 |
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 */ |
| @@ -9,26 +9,6 @@ | |||
| 9 | 9 | ||
| 10 | /* static */ | 10 | /* static */ |
| 11 | 11 | ||
| 12 | static void | ||
| 13 | drawborder(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 | |||
| 32 | static unsigned int | 12 | static unsigned int |
| 33 | textnw(const char *text, unsigned int len) | 13 | textnw(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; |
| @@ -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; |
| @@ -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; |
