Re: [dwm] New client on bottom instead of top

From: Premysl Hruby <dfenze_AT_gmail.com>
Date: Sun, 20 Apr 2008 11:09:52 +0200

On (20/04/08 05:15), Ruben Gonzalez Arnau wrote:
> To: dwm_AT_suckless.org
> From: Ruben Gonzalez Arnau <rga_AT_sdf.lonestar.org>
> Subject: [dwm] New client on bottom instead of top
> Reply-To: dynamic window manager <dwm_AT_suckless.org>
> 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
Received on Sun Apr 20 2008 - 11:09:55 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:34:12 UTC