Re: [dwm] horitzontal split layout

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Sun, 20 Jul 2008 16:34:37 +0200

On 7/20/08, pancake <pancake_AT_youterm.com> wrote:
> if (n)
> for(i = 0, c = nexttiled(clients); c; c = nexttiled(c->next),i++)
> resize(c, 0, (showbar?bh:0) + ((wh/n)*i), ww-(c->bw<<1),
> (wh/n)-(c->bw<<1),0);

instead of showbar?: use wy

bw<<1 is an overkill optimization after you caluculating the same
division (wh/n) n times and any compiler would know how to optimize
2*bw, of course this doesn't matter much just aestetics

on a vertical monitor i usually like one horizontal split + vertical
spliting in the bottom stack area (as in bottom stack patch), but this
makes sense too, so it can be added to /dwm/patches
Received on Sun Jul 20 2008 - 14:34:37 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 20 2008 - 14:36:04 UTC