about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-10-01 21:25:15 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-10-01 21:25:15 +0200
commit95091dcad461f77a641c1c4fe87d49576b79e3fe (patch)
treec987105b7c47d33c8627bb8f1c4f6c9dbf93f0fe
parent57676994ea53634c3944bcd72c246cc98392564b (diff)
downloaddwm-95091dcad461f77a641c1c4fe87d49576b79e3fe.tar.gz
reverted Peters patch to tile, I will discuss the reasons at dwm@
-rw-r--r--dwm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/dwm.c b/dwm.c
index c4a705d..50f4ea0 100644
--- a/dwm.c
+++ b/dwm.c
@@ -646,11 +646,8 @@ enternotify(XEvent *e) {
 
 	if(ev->mode != NotifyNormal || ev->detail == NotifyInferior)
 		return;
-	if((c = getclient(ev->window))) {
+	if((c = getclient(ev->window)))
 		focus(c);
-		if(ISTILE && !c->isfloating)
-			restack();
-	}
 	else if(ev->window == root) {
 		selscreen = True;
 		focus(NULL);
@@ -1595,7 +1592,7 @@ tile(void) {
 		else {  /* tile window */
 			if(i == 1) {
 				ny = way;
-				nx += mc->w + mc->border;
+				nx += mc->w + 2 * mc->border;
 				nw = waw - nx - 2 * c->border;
 			}
 			if(i + 1 == n) /* remainder */
@@ -1605,7 +1602,7 @@ tile(void) {
 		}
 		resize(c, nx, ny, nw, nh, RESIZEHINTS);
 		if(n > 1 && th != wah)
-			ny = c->y + c->h + c->border;
+			ny = c->y + c->h + 2 * c->border;
 	}
 }
 
; 2006-08-03 10:58:29 +0200 applied Sanders doc changes, added a PHONY line and changed the output of config.h creation somewhat' href='/acidbong/suckless/dwm/commit/dwm.1?h=master&id=dc5c070c44d9af434405c8d6538abd06299d3298'>dc5c070 ^
3e11b38 ^
e6cbe9c ^
dc5c070 ^
f17e898 ^
e6cbe9c ^
7ab8c87 ^

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

901b3ed ^
0c3544d ^
2b35fae ^

a3e3f0b ^

2b35fae ^
3e06ede ^
6f20315 ^
4aea423 ^
292ccc4 ^
d4b7a9a ^
10885d3 ^
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