X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.c;h=e11abfda43d767aca153b5466e19bf43a61a2565;hb=bced9077f963be2bce4f0c60023c3b48af54b8e9;hp=6a178f8c09fb13b54633c924ea8d077ca74503a7;hpb=1f18466409aeb40e27b79814247dbda2d40369e2;p=dwm.git diff --git a/client.c b/client.c index 6a178f8..e11abfd 100644 --- a/client.c +++ b/client.c @@ -178,6 +178,8 @@ void resize(Client *c, Bool sizehints) { XWindowChanges wc; + if(c->w <= 0 || c->h <= 0) + return; if(sizehints) { if(c->incw) c->w -= (c->w - c->basew) % c->incw;