[PATCH 1/4] dix: don't call ProcessInputEvents() when accepting/rejecting touches

Peter Hutterer peter.hutterer at who-t.net
Sun Nov 25 22:12:32 PST 2012


TouchListenerAcceptReject may be called during normal event processing, but
ProcessInputEvents is not reentrant and calling it here smashes the event
queue.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 dix/touch.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dix/touch.c b/dix/touch.c
index 9c2b8f3..8db4638 100644
--- a/dix/touch.c
+++ b/dix/touch.c
@@ -988,8 +988,6 @@ TouchListenerAcceptReject(DeviceIntPtr dev, TouchPointInfoPtr ti, int listener,
     for (i = 0; i < nev; i++)
         mieqProcessDeviceEvent(dev, events + i, NULL);
 
-    ProcessInputEvents();
-
     FreeEventList(events, GetMaximumEventsNum());
 
     return nev ? Success : BadMatch;
-- 
1.7.11.7



More information about the xorg-devel mailing list