diff --git a/dwm.c b/dwm.c index 5ff6fd4..1249997 100644 --- a/dwm.c +++ b/dwm.c @@ -559,6 +559,9 @@ configurenotify(XEvent *e) /* TODO: updategeom handling sucks, needs to be simplified */ if (ev->window == root) { + if (ev->width <= 0 || ev->height <= 0) + return; + dirty = (sw != ev->width || sh != ev->height); sw = ev->width; sh = ev->height;