changeset: 1042:2a3f59cc8d2f
tag: tip
user: Anselm R. Garbe <garbeam_AT_gmail.com>
date: Wed Oct 24 20:34:08 2007 +0200
summary: also consider width for tile fallback enforcing
diff -r ee04fab6ff9c -r 2a3f59cc8d2f dwm.c
--- a/dwm.c Wed Oct 24 16:26:59 2007 +0200
+++ b/dwm.c Wed Oct 24 20:34:08 2007 +0200
@@ -1596,7 +1596,8 @@ tile(void) {
nh = th - 2 * c->border;
}
resize(c, nx, ny, nw, nh, True);
- if((c->h < bh) || (c->h > nh)) /* client doesn't accept geometry */
+ if((c->h < bh) || (c->h > nh) || (c->w < bh) || (c->w > nw))
+ /* client doesn't accept geometry, so enforce it */
resize(c, nx, ny, nw, nh, False);
if(n > 1 && th != wah)
ny = c->y + c->h + 2 * c->border;
Received on Wed Oct 24 2007 - 20:34:30 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:36 UTC