about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--config.def.h1
-rw-r--r--dwm.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/config.def.h b/config.def.h
index 1dcd7f9..9714129 100644
--- a/config.def.h
+++ b/config.def.h
@@ -28,6 +28,7 @@ Rule rules[] = {
 
 /* layout(s) */
 #define MWFACT			0.6	/* master width factor [0.1 .. 0.9] */
+#define RESIZEHINTS		True	/* False - respect size hints in tiled resizals */
 #define SNAP			32	/* snap pixel */
 Layout layouts[] = {
 	/* symbol		function */
diff --git a/dwm.c b/dwm.c
index e07574a..257edcc 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1584,8 +1584,8 @@ tile(void) {
 			else
 				nh = th - 2 * c->border;
 		}
-		resize(c, nx, ny, nw, nh, True);
-		if((c->h < bh) || (c->h > nh) || (c->w < bh) || (c->w > nw))
+		resize(c, nx, ny, nw, nh, RESIZEHINTS);
+		if((RESIZEHINTS) && ((c->h < bh) || (c->h > nh) || (c->w < bh) || (c->w > nw)))
 			/* client doesn't accept size constraints */
 			resize(c, nx, ny, nw, nh, False);
 		if(n > 1 && th != wah)
9dfb0b675116c76a6a144b90b7'>e25474154 ^
d68181246 ^
2f43fdb83 ^
902bf0587 ^
d68181246 ^
e25474154 ^




9764ba933 ^
367abca38 ^
26b853923 ^
083d4f470 ^
e25474154 ^
4de84024e ^
367abca38 ^

4de84024e ^

e25474154 ^
4de84024e ^
e25474154 ^
902bf0587 ^
1b4db5a34 ^

902bf0587 ^
4de84024e ^



e25474154 ^
d68181246 ^
e25474154 ^

4de84024e ^
e25474154 ^
d68181246 ^
4de84024e ^


e25474154 ^
4de84024e ^


e25474154 ^
d68181246 ^
e25474154 ^

d68181246 ^
e25474154 ^
e25474154 ^
4de84024e ^
e25474154 ^
9764ba933 ^
4de84024e ^
e25474154 ^
4de84024e ^

d68181246 ^


e25474154 ^



d68181246 ^
4de84024e ^
e25474154 ^






4de84024e ^
e25474154 ^

d68181246 ^
e25474154 ^
4de84024e ^
d68181246 ^
4de84024e ^

d68181246 ^

4de84024e ^

d68181246 ^
4de84024e ^

d68181246 ^
4de84024e ^
d9d82fb0a ^
083d4f470 ^
28d9398de ^
d9d82fb0a ^
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