[PATCH xserver 3/8] xkb: Hold input lock across injected key event processing

Keith Packard keithp at keithp.com
Wed Dec 9 15:12:37 PST 2015


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.6.2



More information about the xorg-devel mailing list