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:
parent
528b4e36ad
commit
3cc5ae6a4f
|
@ -4583,6 +4583,9 @@ DoEnterLeaveEvents(DeviceIntPtr pDev,
|
|||
WindowPtr toWin,
|
||||
int mode)
|
||||
{
|
||||
if (!IsPointerDevice(pDev))
|
||||
return;
|
||||
|
||||
if (fromWin == toWin)
|
||||
return;
|
||||
if (IsParent(fromWin, toWin))
|
||||
|
|
Loading…
Reference in New Issue
Block a user