Re: [dwm] max_and_focus.patch regression

From: Anselm R. Garbe <arg_AT_10kloc.org>
Date: Mon, 4 Sep 2006 17:42:15 +0200

On Mon, Sep 04, 2006 at 05:38:04PM +0200, Sander van Dijk wrote:
> On 9/4/06, Sander van Dijk <a.h.vandijk_AT_gmail.com> wrote:
> >Maybe it's even better to first ban the new client, than map it's
> >windows, than focus it and then call arrange(). My guess is that would
> >be cleaner
> >
> >ban(c);
> >if(isvisible(c))
> > focus(c);
> >mapstuff;
> >arrange();
>
> Blegh, forget about that, calling focus _before_ mapping twin is bad...
> Basically you need to call focus() before arrange(), but also
> arrange() before focus()... Tja...

I currently test this version:

        settitle(c);
        ban(c);
        XMapWindow(dpy, c->win);
        XMapWindow(dpy, c->twin);
        if(isvisible(c))
                focus(c);
        arrange(NULL);
}

Seems to work fine. But it's already after 1.3...

Regards,

-- 
 Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
Received on Mon Sep 04 2006 - 17:42:15 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:30:53 UTC