http://bugs.winehq.org/show_bug.cgi?id=6971
--- Comment #67 from Vitaliy Margolen vitaliy@kievinfo.com 2008-03-14 19:17:16 --- Capturing mouse is not a problem - see XGrabPointer. Reading any mouse movements _ON THE EDGE_ of the window/display _IS_ the problem. The only way to do that is: 1. Warp the mouse 2. Read mouse events directly from the device. Be it xevents from XInput (via the X server - the right way), the evdev events from the device itself. Or some other source of events (dunno what else is left).
This bug is about consequence of doing 1) because 2) is not available (X server won't allow to open primary pointer device as an XInput device) or is the wrong way to do it (reading evdev events directly from the mouse device).