about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--client.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/client.c b/client.c
index 49d40d5..ed8fea9 100644
--- a/client.c
+++ b/client.c
@@ -202,12 +202,12 @@ manage(Window w, XWindowAttributes *wa) {
 	c = emallocz(sizeof(Client));
 	c->tags = emallocz(ntags * sizeof(Bool));
 	c->win = w;
-	c->x = c->tx = wa->x; c->x -= BORDERPX;
-	c->y = c->ty = wa->y; c->y -= BORDERPX;
+	c->border = wa->border_width;
+	c->x = c->tx = wa->x;
+	c->y = c->ty = wa->y;
 	c->w = c->tw = wa->width;
 	c->h = wa->height;
 	c->th = bh;
-	c->border = 0;
 	updatesize(c);
 	if(c->x + c->w + 2 * BORDERPX > sw)
 		c->x = sw - c->w - 2 * BORDERPX;
ss='alt'>
248e789e ^










e1eefb8a ^
248e789e ^
a7c35665 ^

248e789e ^


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