touchscreens in multiscreen setups
Alan.Coopersmith at Sun.COM
Fri Dec 18 07:44:50 PST 2009
Peter Hutterer wrote:
> - randr notification. with screens being added and removed, there's no
> driver interface that I know of that input drivers can use to get notified
> about this stuff.
A hack I used years ago (well before RandR 1.2 and XI2 - I haven't checked
in a long time if it still works) for handling scaling of mouse input events
from the absolute coordinate space reported by some of our remote KVM cards,
was to wrap pScrn->AdjustFrame - you can still see some of that in the
xf86-input-mouse driver in vuidMouseAdjustFrame() in src/sun_mouse.c.
Of course, that works because the remote KVM's have exactly one and only one
screen that the input device can be used with due to their nature, but that
would be the same as a touchscreen.
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering
More information about the xorg