input: introduce partial class copying depending on the event.

Copying all classes into the master device has drawbacks for hybrid devices
(devices that are both mice and keyboards). If such a device posts an event,
it's key classes are moved into the VCP. The key event itself is unaffected
by keyboard grabs and the like.

Partial class copying copies depending on the event and copies the classes
into the right master device (i.e. the VCK for key events, the VCP for
pointer events).

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-05-20 10:55:03 +10:00
commit ebe45e1a72
7 changed files with 210 additions and 156 deletions

View file

@ -221,11 +221,10 @@ extern _X_EXPORT void mieqProcessInputEvents(
void
);
extern void CopyGetMasterEvent(
DeviceIntPtr /* mdev */,
extern DeviceIntPtr CopyGetMasterEvent(
DeviceIntPtr /* sdev */,
InternalEvent* /* original */,
EventListPtr /* master */
EventListPtr /* mlist */
);
/**