darcs patch: Subscribe to leaveNotify events for windows (and 1 more)
Hi, this is the correct patch. It gets screefocus-follows-mouse going. The trick is to enable leaveNotify events for client windows (no enterNotify event for the root window is generated when you move the mouse from a window to the empty space). But these events are generated for the old window, so we must not feed that to focus (or we might create an infinite loop), so there is focusScreen which just makes the screen below the mouse current if it turns out to be a different one than the active one. Works with UpdatePointer without problems. Greetings, Joachim Wed Oct 8 18:25:36 CEST 2008 Joachim Breitner <mail@joachim-breitner.de> * Subscribe to leaveNotify events for windows Wed Oct 8 18:29:06 CEST 2008 Joachim Breitner <mail@joachim-breitner.de> * Switch screen for leaveNotify events ..but do not focus the event's window, as it was just left.
participants (1)
-
Joachim Breitner