diff options
author | Keith Packard <keithp@keithp.com> | 2015-12-09 14:27:05 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-05-26 16:07:54 -0700 |
commit | 728c9570a05f03bd90343ff6f5b1a8fd3988864c (patch) | |
tree | fc41d1329014be17285d966b636713b403ed0203 /xkb/xkbActions.c | |
parent | 05d549d60440126105d5a70272e72ea2319724bd (diff) |
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 <keithp@keithp.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'xkb/xkbActions.c')
-rw-r--r-- | xkb/xkbActions.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 |