Commit 728c9570 authored by Keith Packard's avatar Keith Packard

xkb: Hold input lock across injected key event processing

This makes the code more consistent with other versions of
out-of-queue event processing
Signed-off-by: 's avatarKeith Packard <keithp@keithp.com>
Reviewed-by: 's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 05d549d6
......@@ -1534,13 +1534,12 @@ InjectPointerKeyEvents(DeviceIntPtr dev, int type, int button, int flags,
UpdateFromMaster(&events[nevents], lastSlave, DEVCHANGE_POINTER_EVENT,
&nevents);
miPointerSetWaitForUpdate(pScreen, saveWait);
input_unlock();
for (i = 0; i < nevents; i++)
mieqProcessDeviceEvent(ptr, &events[i], NULL);
input_unlock();
FreeEventList(events, GetMaximumEventsNum());
}
static void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment