Re: [dwm] Re: [PATCH] dofloat removed - saves ~400loc

From: Sander van Dijk <a.h.vandijk_AT_gmail.com>
Date: Mon, 5 Feb 2007 11:46:13 +0100

On 2/5/07, Anselm R. Garbe <arg_AT_suckless.org> wrote:
> So all in all, it is cleaner to me, to implement different
> algorithms of window arrangement in different functions, than
> modifying the behavior of the arrangement algorithm through
> window-based flags...

I agree on that. Having different functions for different types of
layout keep things simple, and also keeps it quite trivial to add a
new layout. c->isfloat was introduced as an option/hack to enforce
floating for apps that just won't behave in any other layout. Using it
to get rid of dofloat() is conceptually wrong, and 35 sloc just isn't
worth that I think.

Greetings, Sander.
Received on Mon Feb 05 2007 - 11:46:14 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:35:50 UTC