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

From: Ruben Gonzalez Arnau <rga_AT_sdf.lonestar.org>
Date: Sun, 20 Apr 2008 13:14:39 +0200

On Sun, Apr 20, 2008 at 11:09:52AM +0200, Premysl Hruby wrote:
> 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
>
Hey,

Lot of thanks, this works perfect!!

thank you :)

-- 
rga_AT_sdf.lonestar.org
Definitions of hardware and software for dummies:
	Hardware is what you kick;
	Software is what you curse.
Received on Sun Apr 20 2008 - 13:14:45 UTC

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