← Back to team overview

ubuntu-x-swat team mailing list archive

[Bug 373367] Re: Pointer goes offscreen on non-rectangular dual-head

 

I have written a qt tray-icon based background app that basically keeps
the mouse in the screen by polling for when its gone out of the screen,
but this is a very suboptimal solution since it has to poll many times a
second and eat cpu.  It sometimes reaches 1% cpu even!  And X is still
getting the events, so it kind of bounces at the edges, not a great
solution (but better than nothing).

A proper solution would be to somehow get the driver or the X system
involved, because we'd want to intercept these pointer events before
they reach X or at least before it sends them on to client applications.
If someone has information on where to start looking if I wanted to mess
around with this at a higher level (X or driver or something) please let
me know - I have the means, but I'm kind of lost in the architecture
here.  There are so many interacting subsystems...

-- 
Pointer goes offscreen on non-rectangular dual-head
https://bugs.launchpad.net/bugs/373367
You received this bug notification because you are a member of Ubuntu-X,
which is subscribed to libxrandr in ubuntu.