about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--draw.c20
-rw-r--r--dwm.12
2 files changed, 13 insertions, 9 deletions
diff --git a/draw.c b/draw.c
index c60df6d..ccd3175 100644
--- a/draw.c
+++ b/draw.c
@@ -36,7 +36,7 @@ drawtext(const char *text, unsigned long col[ColLast], Bool dot, Bool border) {
 	unsigned int len, olen;
 	XGCValues gcv;
 	XRectangle r = { dc.x, dc.y, dc.w, dc.h };
-	XPoint pt[3];
+	XPoint pt[5];
 
 	XSetForeground(dpy, dc.gc, col[ColBG]);
 	XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
@@ -81,13 +81,17 @@ drawtext(const char *text, unsigned long col[ColLast], Bool dot, Bool border) {
 		XFillRectangles(dpy, dc.drawable, dc.gc, &r, 1);
 	}
 	if(border) {
-		pt[0].x = dc.x;
-		pt[0].y = dc.y + dc.h;
-		pt[1].x = 0;
-		pt[1].y = -dc.h;
-		pt[2].x = dc.w;
-		pt[2].y = 0;
-		XDrawLines(dpy, dc.drawable, dc.gc, pt, 3, CoordModePrevious);
+		pt[0].x = dc.x + 1;
+		pt[0].y = dc.y + 1;
+		pt[1].x = dc.w - 2;
+		pt[1].y = 0;
+		pt[2].x = 0;
+		pt[2].y = dc.h - 2;
+		pt[3].x = -(dc.w - 2);
+		pt[3].y = 0;
+		pt[4].x = 0;
+		pt[4].y = -(dc.h - 2);
+		XDrawLines(dpy, dc.drawable, dc.gc, pt, 5, CoordModePrevious);
 	}
 }
 
diff --git a/dwm.1 b/dwm.1
index fda4072..60e5650 100644
--- a/dwm.1
+++ b/dwm.1
@@ -22,7 +22,7 @@ dwm contains a small status bar which displays all available tags, the mode,
 the title of the focused window, and the text read from standard input. The
 selected tags are indicated with a different color. The tags of the focused
 window are indicated with a small point in the top left corner.  The tags which
-are applied to one or more clients are indicated with a pseudo-3d border.
+are applied to one or more clients are indicated with a border.
 .P
 dwm draws a 1-pixel border around windows to indicate the focus state.
 Unfocused windows contain a small bar in front of them displaying their title.
^
e6cbe9c ^
dc5c070 ^
f17e898 ^
e6cbe9c ^
7ab8c87 ^

4606d21 ^
c73d5cb ^
630e7ff ^
c73d5cb ^
b439892 ^
7ab8c87 ^
901b3ed ^
1076f2b

901b3ed ^
0c3544d ^
2b35fae ^

a3e3f0b ^

2b35fae ^
3e06ede ^
6f20315 ^
4aea423 ^
292ccc4 ^
d4b7a9a ^
10885d3 ^
1836b67 ^
92cb5eb ^





1836b67 ^
7ab8c87 ^
1836b67 ^

7ab8c87 ^
2b35fae ^
72655f0 ^
df74b26 ^


72655f0 ^
df74b26 ^
7ab8c87 ^
72655f0 ^
df74b26 ^
7ab8c87 ^
3af6434 ^
df74b26 ^
a118a57 ^
9fb6502 ^
6499fc4 ^
2cce4b9 ^
6499fc4 ^
9066ee2 ^
2cce4b9 ^
9066ee2 ^
8c4623d ^
726ae5b ^
06bae9d ^
8c4623d ^
726ae5b ^
06bae9d ^
bab575c ^
1549faf ^
7ab8c87 ^

1549faf ^
42fd392 ^


bab575c ^
df74b26 ^
7ab8c87 ^

df74b26 ^
45aea23 ^
7ab8c87 ^
45aea23 ^
df74b26 ^
4aea423 ^
1549faf ^
8dc8605 ^
683dabe ^
8dc8605 ^
bab575c ^
df74b26 ^
7ab8c87 ^

1549faf ^
bab575c ^
7ab8c87 ^
daae3bb ^
bab575c ^
3e06ede ^
7ab8c87 ^

4bb89e2 ^
df74b26 ^
7ab8c87 ^
2b35fae ^
0c3544d ^
0e5c819 ^
7ab8c87 ^
0e5c819 ^
4bd0d33 ^
a118a57 ^
4bd0d33 ^
0e5c819 ^
7ab8c87 ^
0c3544d ^
7ab8c87 ^
dc5c070 ^
4bb89e2 ^
60b3dce ^
21bd90d ^
c8f96b5 ^
4bb89e2 ^
c8f96b5 ^



c7da124 ^


c8f96b5 ^

5ef6ef1 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149