diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-31 14:36:48 +1030 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-11-04 16:04:15 +1030 |
commit | cbc6f983959595aa21c9dd72fac6a7070a650ef7 (patch) | |
tree | fe64df0f19ec15dda6b1a1cd531850097a11d708 /mi | |
parent | 4971315296cbf868dd738c1c0c1c504fcfe1b619 (diff) |
xkb: when faking mouse button events, fake them on the correct devices.
When MouseKeys are activated, keyboard devices may generate fake mouse button
events through XKB. Let's get then running through the appropriate paths, i.e.
as XI events on the correct device.
To make matters more fun, ProcessOtherEvents drops events if the DIX device
state cannot be updated accordingly, i.e. all button events from keyboard
devices.
Hence we need to get the paired MD for the device in XkbDDXFakeDeviceButton,
and post the event through the paired MD (usually the VCP).
Removes now-unused ddxFakeBtn.c.
Note: this patch only half-arsedly fixed button events, motion events are a
more complicated matter.
Diffstat (limited to 'mi')
-rw-r--r-- | mi/mieq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -274,7 +274,7 @@ ChangeDeviceID(DeviceIntPtr dev, xEvent* event) * @param master The event after being copied * @param count Number of events in original. */ -static void +void CopyGetMasterEvent(DeviceIntPtr mdev, xEvent* original, xEvent** master, int count) { |