diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-10-24 20:34:08 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-10-24 20:34:08 +0200 |
| commit | 5473e763f6ed7f2f248bc980c0b210edbcc1393c (patch) | |
| tree | d10e63a11cdad863e9a259ecea3b963e342a3b3c | |
| parent | removed RESIZEHINTS and enhanced tile for fixed or aspect-ratio'ed clients (diff) | |
| download | dwm-5473e763f6ed7f2f248bc980c0b210edbcc1393c.tar.gz dwm-5473e763f6ed7f2f248bc980c0b210edbcc1393c.zip | |
also consider width for tile fallback enforcing
Diffstat (limited to '')
| -rw-r--r-- | dwm.c | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1596,7 +1596,8 @@ tile(void) { | |||
| 1596 | nh = th - 2 * c->border; | 1596 | nh = th - 2 * c->border; |
| 1597 | } | 1597 | } |
| 1598 | resize(c, nx, ny, nw, nh, True); | 1598 | resize(c, nx, ny, nw, nh, True); |
| 1599 | if((c->h < bh) || (c->h > nh)) /* client doesn't accept geometry */ | 1599 | if((c->h < bh) || (c->h > nh) || (c->w < bh) || (c->w > nw)) |
| 1600 | /* client doesn't accept geometry, so enforce it */ | ||
| 1600 | resize(c, nx, ny, nw, nh, False); | 1601 | resize(c, nx, ny, nw, nh, False); |
| 1601 | if(n > 1 && th != wah) | 1602 | if(n > 1 && th != wah) |
| 1602 | ny = c->y + c->h + 2 * c->border; | 1603 | ny = c->y + c->h + 2 * c->border; |
