[PATCH xserver 4/9] xkb: Hold input lock across injected key event processing
Keith Packard
keithp at keithp.com
Wed May 11 20:54:53 UTC 2016
This makes the code more consistent with other versions of
out-of-queue event processing
Signed-off-by: Keith Packard <keithp at keithp.com>
---
xkb/xkbActions.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c
index afe5edf..048ed44 100644
--- a/xkb/xkbActions.c
+++ b/xkb/xkbActions.c
@@ -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
--
2.8.0.rc3
More information about the xorg-devel
mailing list