diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-14 19:38:10 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-14 19:38:10 +0200 |
| commit | 8fcc4ff0ae2b20f9605370cee02ebcda50f8777c (patch) | |
| tree | 9cb7581449006605db64d55b5cab024d3108cc68 | |
| parent | fixed a typo (diff) | |
| download | dwm-8fcc4ff0ae2b20f9605370cee02ebcda50f8777c.tar.gz dwm-8fcc4ff0ae2b20f9605370cee02ebcda50f8777c.zip | |
fix of resize (thanks Sander for the hint!)
| -rw-r--r-- | client.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -272,9 +272,9 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) { | |||
| 272 | w -= (w - c->basew) % c->incw; | 272 | w -= (w - c->basew) % c->incw; |
| 273 | if(c->inch) | 273 | if(c->inch) |
| 274 | h -= (h - c->baseh) % c->inch; | 274 | h -= (h - c->baseh) % c->inch; |
| 275 | if(w <= 0 || h <= 0) | ||
| 276 | return; | ||
| 277 | } | 275 | } |
| 276 | if(w <= 0 || h <= 0) | ||
| 277 | return; | ||
| 278 | /* offscreen appearance fixes */ | 278 | /* offscreen appearance fixes */ |
| 279 | if(x > sw) | 279 | if(x > sw) |
| 280 | x = sw - w - 2 * c->border; | 280 | x = sw - w - 2 * c->border; |
