mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
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:
parent
bc63c8a457
commit
ebe45e1a72
7 changed files with 210 additions and 156 deletions
5
mi/mi.h
5
mi/mi.h
|
|
@ -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 */
|
||||
);
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue