[PATCH 2/4] X event queue mutex

Tiago Vignatti vignatti at c3sl.ufpr.br
Thu Nov 6 20:32:06 PST 2008


Peter Hutterer escreveu:
> From: Peter Hutterer <peter.hutterer at redhat.com>
> Date: Tue, 4 Nov 2008 15:27:30 +1030
> Subject: [PATCH] mi: clean up mieqProcessInputEvents, copy all events before processing.
> 
> Copy the EventRec's information into local variables before processing them,
> this should make it safer for upcoming threading and also makes it easier to
> read.
> 
> Simplify the event allocation code from the abyss it was before.
> 
> This also fixes a potential bug where a custom handler could scramble the
> event before the same -now scrambled- event was then passed through the
> master's custom event handler.
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at redhat.com>

Signed-off-by Tiago Vignatti <vignatti at c3sl.ufpr.br>

It's fine for me. Applied and tested here.


Thanks,

-- 
Tiago Vignatti
C3SL - Centro de Computação Científica e Software Livre
www.c3sl.ufpr.br



More information about the xorg mailing list