mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 15:10:02 +01:00
dix: Avoid writing uninitialized bytes in deliverPropertyNotifyEvent
Make sure the whole event is initialized, instead of leaving the pad bytes unset. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
67fc5d68f9
commit
fa2bc06407
1 changed files with 6 additions and 4 deletions
|
|
@ -110,10 +110,12 @@ deliverPropertyNotifyEvent(WindowPtr pWin, int state, Atom atom)
|
||||||
{
|
{
|
||||||
xEvent event;
|
xEvent event;
|
||||||
UpdateCurrentTimeIf();
|
UpdateCurrentTimeIf();
|
||||||
event.u.property.window = pWin->drawable.id;
|
event = (xEvent) {
|
||||||
event.u.property.state = state;
|
.u.property.window = pWin->drawable.id,
|
||||||
event.u.property.atom = atom;
|
.u.property.state = state,
|
||||||
event.u.property.time = currentTime.milliseconds;
|
.u.property.atom = atom,
|
||||||
|
.u.property.time = currentTime.milliseconds,
|
||||||
|
};
|
||||||
event.u.u.type = PropertyNotify;
|
event.u.u.type = PropertyNotify;
|
||||||
DeliverEvents(pWin, &event, 1, (WindowPtr) NULL);
|
DeliverEvents(pWin, &event, 1, (WindowPtr) NULL);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue