diff options
Diffstat (limited to 'dwm.c')
| -rw-r--r-- | dwm.c | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -559,6 +559,9 @@ configurenotify(XEvent *e) | |||
| 559 | 559 | ||
| 560 | /* TODO: updategeom handling sucks, needs to be simplified */ | 560 | /* TODO: updategeom handling sucks, needs to be simplified */ |
| 561 | if (ev->window == root) { | 561 | if (ev->window == root) { |
| 562 | if (ev->width <= 0 || ev->height <= 0) | ||
| 563 | return; | ||
| 564 | |||
| 562 | dirty = (sw != ev->width || sh != ev->height); | 565 | dirty = (sw != ev->width || sh != ev->height); |
| 563 | sw = ev->width; | 566 | sw = ev->width; |
| 564 | sh = ev->height; | 567 | sh = ev->height; |
