[xmonad] Get mouse to follow cursor

Magnus Ågren agren at sics.se
Wed Jun 10 02:42:21 EDT 2009


When I move to a new window I would like the mouse pointer to be at
the same position as the text cursor. Does anyone have a solution to

I would like this since I use


to be able to paste text using the keyboard, and for this to work for
example in a browser input field the mouse must follow the text cursor.

Currently I use

import XMonad.Actions.UpdatePointer


logHook = updatePointer (Relative 0.5 0.5)

to get the pointer to at least follow the focused window.

Thanks in advance.


More information about the xmonad mailing list