Re: [dwm] spiral tiling layout

From: Jeroen Schot <schot-dwm_AT_a-eskwadraat.nl>
Date: Wed, 25 Jul 2007 19:52:12 +0200

On Wed, Jul 25, 2007 at 07:42:40PM +0200, pancake wrote:
> You can remove 3 lines from this patch by doing this:
>
> - for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
> - n++;
> -
>
> remove the 'n' variable.
>
> - if (i < n-1 ) {
> + if (c->next) {

This won't work if 'isvisible(c->next) == False'.

> I'm working to support masterw and nmaster too. But maybe this will be another
> different patch, so spiral is a clean algo and my patch makes the algo ugly.

This shouldn't be very difficult, roughly: Just copy the
tile()-algorithm and replace the stack part with the spiral-algorithm.

Regards,

-- 
Jeroen Schot
schot_AT_a-eskwadraat.nl (mail & jabber)
http://schot.a-eskwadraat.nl
Received on Wed Jul 25 2007 - 19:52:15 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:47:00 UTC