From 728c9570a05f03bd90343ff6f5b1a8fd3988864c Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Wed, 9 Dec 2015 14:27:05 -0800 Subject: 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: Keith Packard Reviewed-by: Peter Hutterer --- xkb/xkbActions.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'xkb') diff --git a/xkb/xkbActions.c b/xkb/xkbActions.c index afe5edf0d..048ed441a 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 -- cgit v1.2.3