dix: don't attempt to send Enter/Leave events if we have a keyboard.

Dereferencing into dev->valuator could crash the server, although it looks
like I could only reproduce this by having a keyboard send an event after it
was created and the WM was still replaying. Or so.
This commit is contained in:
Peter Hutterer 2008-06-18 16:14:42 +09:30
parent 528b4e36ad
commit 3cc5ae6a4f

View File

@ -4583,6 +4583,9 @@ DoEnterLeaveEvents(DeviceIntPtr pDev,
WindowPtr toWin,
int mode)
{
if (!IsPointerDevice(pDev))
return;
if (fromWin == toWin)
return;
if (IsParent(fromWin, toWin))