about summary refs log tree commit diff stats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@gmail.com>2007-08-14 19:38:10 +0200
committerAnselm R. Garbe <garbeam@gmail.com>2007-08-14 19:38:10 +0200
commit8fcc4ff0ae2b20f9605370cee02ebcda50f8777c (patch)
tree9cb7581449006605db64d55b5cab024d3108cc68 /client.c
parentf2512243f494915fe91ebb5e67ac94abd5b528c6 (diff)
downloaddwm-8fcc4ff0ae2b20f9605370cee02ebcda50f8777c.tar.gz
fix of resize (thanks Sander for the hint!)
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client.c b/client.c
index 114aedd..ed19d9c 100644
--- a/client.c
+++ b/client.c
@@ -272,9 +272,9 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) {
 			w -= (w - c->basew) % c->incw;
 		if(c->inch)
 			h -= (h - c->baseh) % c->inch;
-		if(w <= 0 || h <= 0)
-			return;
 	}
+	if(w <= 0 || h <= 0)
+		return;
 	/* offscreen appearance fixes */
 	if(x > sw)
 		x = sw - w - 2 * c->border;