xfree86/input: Restore DGAStealKeyEvent()
DGA key event support was lost in commit
8da0ff2d51
. Bring it back.
Signed-off-by: Ville Syrjala <syrjala@sci.fi>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
a2c4818219
commit
7b16e8633d
@ -1240,6 +1240,19 @@ xf86PostKeyEventM(DeviceIntPtr device,
|
|||||||
{
|
{
|
||||||
int i = 0, nevents = 0;
|
int i = 0, nevents = 0;
|
||||||
|
|
||||||
|
#if XFreeXDGA
|
||||||
|
int index;
|
||||||
|
DeviceIntPtr pointer;
|
||||||
|
|
||||||
|
/* Some pointers send key events, paired device is wrong then. */
|
||||||
|
pointer = IsPointerDevice(device) ? device : GetPairedDevice(device);
|
||||||
|
if (miPointerGetScreen(pointer)) {
|
||||||
|
index = miPointerGetScreen(pointer)->myNum;
|
||||||
|
if (DGAStealKeyEvent(device, index, key_code, is_down))
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (is_absolute) {
|
if (is_absolute) {
|
||||||
nevents = GetKeyboardValuatorEvents(xf86Events, device,
|
nevents = GetKeyboardValuatorEvents(xf86Events, device,
|
||||||
is_down ? KeyPress : KeyRelease,
|
is_down ? KeyPress : KeyRelease,
|
||||||
|
Loading…
Reference in New Issue
Block a user