X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=blobdiff_plain;f=dwm.c;h=f7b9477dfcb07004aecc47afcfa68f284de5b1f2;hp=bded0c5def4e8650b3f99468db1bdc726a391c44;hb=e7572804faa9a21a57ae298c2b153ff92d8a64ff;hpb=ea8a4ca46a9577997e0a3f30e211c644477c6a00 diff --git a/dwm.c b/dwm.c index bded0c5..f7b9477 100644 --- a/dwm.c +++ b/dwm.c @@ -15,7 +15,7 @@ * * Each child of the root window is called a client, except windows which have * set the override_redirect flag. Clients are organized in a global - * doubly-linked client list, the focus history is remembered through a global + * linked client list, the focus history is remembered through a global * stack list. Each client contains a bit array to indicate the tags of a * client. * @@ -1455,14 +1455,8 @@ tile(void) { h = wh; for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) { - if(i + 1 == n) { /* remainder */ - if(wy + wh - y < bh) - resize(c, x, y, w - 2 * c->bw, wy + wh - y - 2 * c->bw, False); - else - resize(c, x, y, w - 2 * c->bw, wy + wh - y - 2 * c->bw, resizehints); - } - else - resize(c, x, y, w - 2 * c->bw, h - 2 * c->bw, resizehints); + resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n) + ? wy + wh - y - 2 * c->bw : h - 2 * c->bw), resizehints); if(h != wh) y = c->y + HEIGHT(c); }