On Sun, Apr 20, 2008 at 11:09:52AM +0200, Premysl Hruby wrote:
> On (20/04/08 05:15), Ruben Gonzalez Arnau wrote:
> > To: [email protected]
> > From: Ruben Gonzalez Arnau <[EMAIL PROTECTED]>
> > Subject: [dwm] New client on bottom instead of top
> > Reply-To: dynamic window manager <[email protected]>
> > List-Id: dynamic window manager <dwm.suckless.org>
> >
> > Hello,
> >
> > What is the way to get new client at bottom instead of top? By default,
> > when a new client is launched it goes to the top of my clients, I just
> > want that new client goes to bottom(like wmii). Wich function do I need to
> > modify? zoom,attach? :P
> >
> > any hint? :)
> >
> > Lot of thanks.
> >
>
> Yes, it's attach() :)
>
> try something like this:
>
> void
> attach(Client *c) {
> if (clients) {
> Client *last;
> for (last = clients; last->next; last = last->next);
> last->next = c;
> c->prev = last;
> c->next = NULL;
> }
> else
> clients = c;
> }
>
>
> -Ph
>
Hey,
Lot of thanks, this works perfect!!
thank you :)
--
[EMAIL PROTECTED]
Definitions of hardware and software for dummies:
Hardware is what you kick;
Software is what you curse.