mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-02 18:58:16 +02:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -4583,6 +4583,9 @@ DoEnterLeaveEvents(DeviceIntPtr pDev,
|
|||
WindowPtr toWin,
|
||||
int mode)
|
||||
{
|
||||
if (!IsPointerDevice(pDev))
|
||||
return;
|
||||
|
||||
if (fromWin == toWin)
|
||||
return;
|
||||
if (IsParent(fromWin, toWin))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue