[xmonad] darcs patch: Subscribe to leaveNotify events for windows
(and 1 more)
Joachim Breitner
mail at joachim-breitner.de
Wed Oct 8 12:33:34 EDT 2008
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 at joachim-breitner.de>
* Subscribe to leaveNotify events for windows
Wed Oct 8 18:29:06 CEST 2008 Joachim Breitner <mail at joachim-breitner.de>
* Switch screen for leaveNotify events
..but do not focus the event's window, as it was just left.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 7282 bytes
Desc: A darcs patch for your repository!
Url : http://www.haskell.org/pipermail/xmonad/attachments/20081008/75343a8d/attachment.bin
More information about the xmonad
mailing list