Re: [dwm] Fwd: Re: maximization handling

From: Sander van Dijk <a.h.vandijk_AT_gmail.com>
Date: Fri, 22 Sep 2006 15:27:51 +0200

On 9/22/06, Anselm R. Garbe <arg_AT_10kloc.org> wrote:
> On Fri, Sep 22, 2006 at 03:17:51PM +0200, Jukka Salmi wrote:
> > diff -r 0db173d7e59c view.c
> > --- a/view.c Fri Sep 22 14:02:41 2006 +0200
> > +++ b/view.c Fri Sep 22 14:59:45 2006 +0200
> > @@ -102,14 +102,8 @@ dotile(Arg *arg) {
> >
> > w = sw - mw;
> > for(n = 0, c = clients; c; c = c->next)
> > - if(isvisible(c)) {
> > - if(c->isfloat) {
> > - if(c->ismax)
> > - togglemax(c);
> > - }
> > - else
> > - n++;
> > - }
> > + if(isvisible(c) && !c->isfloat)
> > + n++;
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> Is this really intended?

I think it is, since the amount of tiled clients needs to be known
further on. Note that now that there is the nexttiled() function this
counting part could be simplified a bit (the way it's done now is the
way it was done long before nexttiled() already).

Gr. Sander.
Received on Fri Sep 22 2006 - 15:27:53 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:31:22 UTC