Re: [dwm] max_and_focus.patch regression

From: Sander van Dijk <a.h.vandijk_AT_gmail.com>
Date: Mon, 4 Sep 2006 16:57:31 +0200

On 9/4/06, Anselm R. Garbe <arg_AT_10kloc.org> wrote:
> On Mon, Sep 04, 2006 at 04:18:48PM +0200, Jukka Salmi wrote:
> > Hi,
> >
> > changeset [1]400 seems to have introduced the following behaviour: if
> > Firefox is running in floating mode and I open a new browser window
> > (Ctrl-N from within Firefox), the newly opened window is opened "behind"
> > the existing one (but it gets the focus). With an older dwm binary
> > it's opened in front of the existing window, as expected. Any hints?
> >
> >
> > TIA, Jukka
> >
> > [1] http://10kloc.org/cgi-bin/hgwebdir.cgi/dwm?cs=052657ff2e7b
>
> I can reproduce this as well.
>
> Regards,
> --
> Anselm R. Garbe ><>< www.ebrag.de ><>< GPG key: 0D73F361
>
>

My guess is that a call to restack() at the end of manage() in
client.c will fix this;

change:

if(isvisible(c))
    focus(c);

to:

if(isvisible(c)) {
    focus(c);
    restack();
}

I'm not at a unix box now so I can't promise, but I think that'll fix
it. Sorry I overlooked that.

Gr. Sander.
Received on Mon Sep 04 2006 - 16:57:34 UTC

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