X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=client.c;h=d04692d06cb98e7e79d1342969a724a9874dac20;hb=2b13e7466f4912e3778bf59e6aec3065443f08fe;hp=60f1cbeff8777bc9f16cbb0bddc8bba0550a4300;hpb=6651dd7fd9e8e95cfc6c472f1adfeff41735d798;p=dwm.git diff --git a/client.c b/client.c index 60f1cbe..d04692d 100644 --- a/client.c +++ b/client.c @@ -202,12 +202,12 @@ manage(Window w, XWindowAttributes *wa) { c = emallocz(sizeof(Client)); c->tags = emallocz(ntags * sizeof(Bool)); c->win = w; + c->border = 0; c->x = c->tx = wa->x; c->y = c->ty = wa->y; c->w = c->tw = wa->width; c->h = wa->height; c->th = bh; - c->border = 0; updatesize(c); if(c->x + c->w + 2 * BORDERPX > sw) c->x = sw - c->w - 2 * BORDERPX; @@ -233,7 +233,7 @@ manage(Window w, XWindowAttributes *wa) { settags(c, getclient(trans)); if(!c->isfloat) c->isfloat = trans - || (c->maxw && c->minw && + || (c->maxw && c->minw && c->maxh && c->minh && c->maxw == c->minw && c->maxh == c->minh); resizetitle(c); if(clients) @@ -246,7 +246,7 @@ manage(Window w, XWindowAttributes *wa) { XMapWindow(dpy, c->twin); if(isvisible(c)) focus(c); - arrange(NULL); + arrange(); } void @@ -393,5 +393,5 @@ unmanage(Client *c) { XSync(dpy, False); XSetErrorHandler(xerror); XUngrabServer(dpy); - arrange(NULL); + arrange(); }