mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-06 22:55:10 +00:00
dix: null out dummyDev, otherwise Xephyr dereferences random pointers.
SendEventToAllWindow eventually causes a IsInterferingGrab(), which attempts to dereference dev->deviceGrab.grab.
This commit is contained in:
parent
150c2f55a5
commit
62c1a32976
1 changed files with 2 additions and 1 deletions
|
|
@ -376,7 +376,8 @@ ActivateDevice(DeviceIntPtr dev)
|
||||||
ev.time = currentTime.milliseconds;
|
ev.time = currentTime.milliseconds;
|
||||||
ev.devchange = DeviceAdded;
|
ev.devchange = DeviceAdded;
|
||||||
ev.deviceid = dev->id;
|
ev.deviceid = dev->id;
|
||||||
dummyDev.id = 0;
|
|
||||||
|
memset(&dummyDev, 0, sizeof(DeviceIntRec));
|
||||||
SendEventToAllWindows(&dummyDev, DevicePresenceNotifyMask,
|
SendEventToAllWindows(&dummyDev, DevicePresenceNotifyMask,
|
||||||
(xEvent *) &ev, 1);
|
(xEvent *) &ev, 1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue