mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 01:30:13 +01:00
Input: Fix event size confusion in CheckPassiveGrabsOnWindow
We were just storing a DeviceEvent, but allocating enough space for an InternalEvent. Signed-off-by: Daniel Stone <daniel@fooishbar.org> Reviewed-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Cyril Brulebois <kibi@debian.org>
This commit is contained in:
parent
7063264910
commit
73de542104
1 changed files with 1 additions and 1 deletions
|
|
@ -3565,7 +3565,7 @@ CheckPassiveGrabsOnWindow(
|
|||
if (grabinfo->sync.state == FROZEN_NO_EVENT)
|
||||
{
|
||||
if (!grabinfo->sync.event)
|
||||
grabinfo->sync.event = calloc(1, sizeof(InternalEvent));
|
||||
grabinfo->sync.event = calloc(1, sizeof(DeviceEvent));
|
||||
*grabinfo->sync.event = *event;
|
||||
grabinfo->sync.state = FROZEN_WITH_EVENT;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue