[dev] Re: clients with large min size

From: Szabolcs Nagy <nszabolcs_AT_gmail.com>
Date: Tue, 6 Oct 2009 19:19:14 +0200

On 10/6/09, Szabolcs Nagy <nszabolcs_AT_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;
Received on Tue Oct 06 2009 - 17:19:14 UTC

This archive was generated by hypermail 2.2.0 : Tue Oct 06 2009 - 17:24:01 UTC