Re: [dwm] make setlayout toggle

From: Neale Pickett <neale_AT_woozle.org>
Date: Tue, 04 Nov 2008 15:07:13 -0700

yy <yiyu.jgl_AT_gmail.com> writes:

> After a quick look, I think the last check in the first if should be
> arg->v != lt[sellt^1]

Yes, that's what it should have said. I wonder how it was working for
me before, when I sent the code to the list. [cue twilight zone music]

Here's what it should have said:

void
setlayout(const Arg *arg)
{
  sellt ^= 1;
  if(arg && arg->v && (arg->v != lt[sellt^1]))
    lt[sellt] = (Layout *)arg->v;
  if(sel)
    arrange();
  else
    drawbar();
}

Neale
Received on Tue Nov 04 2008 - 22:07:13 UTC

This archive was generated by hypermail 2.2.0 : Tue Nov 04 2008 - 22:12:04 UTC