2009/10/6 Szabolcs Nagy <nszabo...@gmail.com>:
> On 10/6/09, Szabolcs Nagy <nszabo...@gmail.com> wrote:
>> another corner case:
>
> enternotify is handled even when the entered window is already focused
> (eg moving the mouse to the bar and back, scrolling on the border..)
>
> focusing might be expensive for some clients (eg dim/light up)
>
> a possible solution is to modify enternotify:
>
> +       c = wintoclient(ev->window);
>        if((m = wintomon(ev->window)) && m != selmon) {
>                unfocus(selmon->sel);
>                selmon = m;
>        }
> +       else if (c == selmon->sel || c == NULL)
> +               return;

Agreed, I'll add this on my TODO list.

Kind regards,
Anselm

Reply via email to