dix: Use CopyPartialInternalEvent in EnqueueEvent
The event might be a DeviceEvent allocated on the stack, in AccessXKeyboardEvent for instance. Fixes out-of-bounds read.
(cherry picked from commit 2ef5ef57)
Backport of !1044 (merged)
cc @mgorse
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
The event might be a DeviceEvent allocated on the stack, in AccessXKeyboardEvent for instance. Fixes out-of-bounds read.
(cherry picked from commit 2ef5ef57)
Backport of !1044 (merged)
cc @mgorse