Re: focus problem (was: Re: [dwm] Wide Layout Patch for dwm-1.2)

From: Anselm R. Garbe <>
Date: Fri, 15 Sep 2006 12:00:49 +0200

On Fri, Sep 15, 2006 at 11:55:35AM +0200, Sander van Dijk wrote:
> On 9/15/06, Anselm R. Garbe <> wrote:
> >Nah, there are not much simplifications possible without
> >repeating mistakes which have been already done. Anyway, I
> >believe I fixed this issue with a single check in focus() to not
> >focus clients which are invisible. Jukka, can you recheck
> >please?
> Hm, I'm not sure this is a good idea; I get the impression from
> Jukka's report that the problem is that focus _stays_ somewhere it
> isn't supposed to rather than being _put_ somewhere it shouldn't. This
> check might work around some cases, but it doesn't really fix them;
> dwm should never attempt to put/stay focus on something non-visible in
> the first place (and so far, I haven't found the (missing?) code that
> does allows this to happen). I think it's better to trace where the
> focussetting goes wrong rather than work around it.

It's no workaround, it enforces the dwm policy. And the issue
occures not because of a dwm fault, but because a nasty
enternotify which is created by the server after dwm finished
flushing the EnterNotifys, thus the fix is correct, because a
non-visible window should never be focused.


 Anselm R. Garbe  ><><  ><><  GPG key: 0D73F361
Received on Fri Sep 15 2006 - 12:00:49 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 14:31:16 UTC