X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=client.c;h=b158f011dfa74bb1f96d48fe9ed8dac1d82722db;hb=5e9acbc952ef6c323e456fbef82fa5b1c5a9cde2;hp=73f21ed87fbaa1977d5833cb4ea0d0cbf3fffad7;hpb=a420ceab50b896a6b6edc81c2a42c4ddc75b867e;p=dwm.git diff --git a/client.c b/client.c index 73f21ed..b158f01 100644 --- a/client.c +++ b/client.c @@ -296,7 +296,7 @@ resize(Client *c, Bool sizehints, Corner sticky) if(c->x > sw) /* might happen on restart */ c->x = sw - c->w; if(c->y > sh) - c->y = bottom - c->h; + c->y = sh - c->h; if(sticky == TopRight || sticky == BotRight) c->x = right - c->w; if(sticky == BotLeft || sticky == BotRight)