[hackers] [dwm] fix of resize (thanks Sander for the hint!)

From: Anselm R. Garbe <garbeam_AT_gmail.com>
Date: Tue Aug 14 19:45:32 2007

changeset: 952:4f66942cc63b
tag: tip
user: Anselm R. Garbe <garbeam_AT_gmail.com>
date: Tue Aug 14 19:38:10 2007 +0200
summary: fix of resize (thanks Sander for the hint!)

diff -r 3a0407d4b95b -r 4f66942cc63b client.c
--- a/client.c Tue Aug 14 07:54:51 2007 +0200
+++ b/client.c Tue Aug 14 19:38:10 2007 +0200
@@ -272,9 +272,9 @@ resize(Client *c, int x, int y, int w, i
                         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;
Received on Tue Aug 14 2007 - 19:45:32 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:53 UTC