You should be able to do this with the `handleEventHook` [1], for which the `MotionEvent` [2] is the appropriate event to handle. You should be able to use `focus` [3] on the `Window` contained in the event to focus the window the mouse is currently over. Caveat emptor, this advice is entirely untested -- no idea what odd corners there are, or even whether it will work (e.g. I vaguely recall that xmonad used to ignore motion events in some circumstances; I don't see that in the code now but I wouldn't be surprised if it were still the case somehow). ~d [1] http://hackage.haskell.org/package/xmonad-0.12/docs/XMonad-Core.html#v:handl... [2] http://hackage.haskell.org/package/X11-1.6.1.2/docs/Graphics-X11-Xlib-Extras... [3] http://hackage.haskell.org/package/xmonad-0.12/docs/XMonad-Operations.html#v... On Tue, Jan 26, 2016 at 9:46 PM, Евгений Курневский <kurnevsky@gmail.com> wrote:
Be careful - with XMonad.Actions.UpdatePointer mouse cursor gets stuck in the monitor corners sometimes. I made pull request to fix this https://github.com/xmonad/xmonad-contrib/pull/17 , but it is not merget at the moment.
2016-01-26 22:40 GMT+03:00 Ico <xmonad@zevv.nl>:
Hi Samuli and Andrew,
* On 2016-01-26 20:24:18 +0100, Andrew Sackville-West wrote:
Look at XMonad.Actions.UpdatePointer
Thanks for pointing me to UpdatePointer. It's indeed not exactly what I ment, but I guess it is close enough and solves my problem for now.
Ico
-- :wq ^X^Cy^K^X^C^C^C^C _______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad
-- С уважением, Курневский Евгений.
_______________________________________________ xmonad mailing list xmonad@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/xmonad