Split the signal-handler's lastSlave out into a separate variable.

dev->u.lastSlave was not signal safe since it was accessed by the DIX and
during signal handling.
Replaced with:
'dev->last.slave' for the signal handler's lastSlave (used to generate
                  DeviceChangedEvents), .
'dev->u.lastSlave' for the DIX lastSlave (currently only used in
                   change_modmap)

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-05-20 16:23:38 +10:00
commit add2defac7
5 changed files with 23 additions and 6 deletions

View file

@ -1010,7 +1010,6 @@ ProcessOtherEvent(InternalEvent *ev, DeviceIntPtr device)
if (device->isMaster || !device->u.master)
CheckMotion(event, device);
switch (event->type)
{
case ET_Motion: