summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-25 09:59:48 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-25 09:59:48 +0100
commit2c1db7ed354f303c2a2aa7eb6b7de3a0dac5d022 (patch)
treee630621f5e8352a7d494ec90e2379c4ed63a6ecb
parentAdded tag 3.2.1 for changeset f2cabc83a18f (diff)
downloaddwm-2c1db7ed354f303c2a2aa7eb6b7de3a0dac5d022.tar.gz
dwm-2c1db7ed354f303c2a2aa7eb6b7de3a0dac5d022.zip
prepared yet another hotfix release
Diffstat (limited to '')
-rw-r--r--client.c2
-rw-r--r--config.mk2
-rw-r--r--view.c10
3 files changed, 9 insertions, 5 deletions
diff --git a/client.c b/client.c
index 6a178f8..e11abfd 100644
--- a/client.c
+++ b/client.c
@@ -178,6 +178,8 @@ void
178resize(Client *c, Bool sizehints) { 178resize(Client *c, Bool sizehints) {
179 XWindowChanges wc; 179 XWindowChanges wc;
180 180
181 if(c->w <= 0 || c->h <= 0)
182 return;
181 if(sizehints) { 183 if(sizehints) {
182 if(c->incw) 184 if(c->incw)
183 c->w -= (c->w - c->basew) % c->incw; 185 c->w -= (c->w - c->basew) % c->incw;
diff --git a/config.mk b/config.mk
index a3388e1..a8d453e 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
1# dwm version 1# dwm version
2VERSION = 3.2.1 2VERSION = 3.2.2
3 3
4# Customize below to fit your system 4# Customize below to fit your system
5 5
diff --git a/view.c b/view.c
index 81dd4b3..de3328e 100644
--- a/view.c
+++ b/view.c
@@ -98,11 +98,11 @@ dotile(void) {
98 else { /* tile window */ 98 else { /* tile window */
99 c->x += mw; 99 c->x += mw;
100 c->w = tw - 2 * BORDERPX; 100 c->w = tw - 2 * BORDERPX;
101 if(th > bh) { 101 if(th - 2 * BORDERPX > bh) {
102 c->y += (i - nmaster) * th; 102 c->y += (i - nmaster) * th;
103 c->h = th - 2 * BORDERPX; 103 c->h = th - 2 * BORDERPX;
104 } 104 }
105 else /* fallback if th < bh */ 105 else /* fallback if th - 2 * BORDERPX < bh */
106 c->h = wah - 2 * BORDERPX; 106 c->h = wah - 2 * BORDERPX;
107 } 107 }
108 resize(c, False); 108 resize(c, False);
@@ -149,7 +149,8 @@ focusprev(Arg *arg) {
149 149
150void 150void
151incnmaster(Arg *arg) { 151incnmaster(Arg *arg) {
152 if((arrange == dofloat) || (nmaster + arg->i < 1) || (wah / (nmaster + arg->i) < bh)) 152 if((arrange == dofloat) || (nmaster + arg->i < 1)
153 || (wah / (nmaster + arg->i) - 2 * BORDERPX < bh))
153 return; 154 return;
154 nmaster += arg->i; 155 nmaster += arg->i;
155 if(sel) 156 if(sel)
@@ -173,7 +174,8 @@ resizemaster(Arg *arg) {
173 if(arg->i == 0) 174 if(arg->i == 0)
174 master = MASTER; 175 master = MASTER;
175 else { 176 else {
176 if(master + arg->i > 950 || master + arg->i < 50) 177 if(waw * (master + arg->i) / 1000 > waw - bh - 2 * BORDERPX
178 || waw * (master + arg->i) / 1000 < bh + 2 * BORDERPX)
177 return; 179 return;
178 master += arg->i; 180 master += arg->i;
179 } 181 }