xv: TryClientEvents already checks client and sets sequenceNumber.
So don't bother doing those steps again. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
e1e7deefb5
commit
ee9cd2df4a
|
@ -530,17 +530,13 @@ XvdiSendVideoNotify(XvPortPtr pPort, DrawablePtr pDraw, int reason)
|
||||||
|
|
||||||
while (pn)
|
while (pn)
|
||||||
{
|
{
|
||||||
if (pn->client)
|
event.u.u.type = XvEventBase + XvVideoNotify;
|
||||||
{
|
event.u.videoNotify.time = currentTime.milliseconds;
|
||||||
event.u.u.type = XvEventBase + XvVideoNotify;
|
event.u.videoNotify.drawable = pDraw->id;
|
||||||
event.u.u.sequenceNumber = pn->client->sequence;
|
event.u.videoNotify.port = pPort->id;
|
||||||
event.u.videoNotify.time = currentTime.milliseconds;
|
event.u.videoNotify.reason = reason;
|
||||||
event.u.videoNotify.drawable = pDraw->id;
|
TryClientEvents(pn->client, NULL, (xEventPtr)&event, 1,
|
||||||
event.u.videoNotify.port = pPort->id;
|
NoEventMask, NoEventMask, NullGrab);
|
||||||
event.u.videoNotify.reason = reason;
|
|
||||||
TryClientEvents(pn->client, NULL, (xEventPtr)&event, 1,
|
|
||||||
NoEventMask, NoEventMask, NullGrab);
|
|
||||||
}
|
|
||||||
pn = pn->next;
|
pn = pn->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -562,17 +558,13 @@ XvdiSendPortNotify(
|
||||||
|
|
||||||
while (pn)
|
while (pn)
|
||||||
{
|
{
|
||||||
if (pn->client)
|
event.u.u.type = XvEventBase + XvPortNotify;
|
||||||
{
|
event.u.portNotify.time = currentTime.milliseconds;
|
||||||
event.u.u.type = XvEventBase + XvPortNotify;
|
event.u.portNotify.port = pPort->id;
|
||||||
event.u.u.sequenceNumber = pn->client->sequence;
|
event.u.portNotify.attribute = attribute;
|
||||||
event.u.portNotify.time = currentTime.milliseconds;
|
event.u.portNotify.value = value;
|
||||||
event.u.portNotify.port = pPort->id;
|
TryClientEvents(pn->client, NULL, (xEventPtr)&event, 1,
|
||||||
event.u.portNotify.attribute = attribute;
|
NoEventMask, NoEventMask, NullGrab);
|
||||||
event.u.portNotify.value = value;
|
|
||||||
TryClientEvents(pn->client, NULL, (xEventPtr)&event, 1,
|
|
||||||
NoEventMask, NoEventMask, NullGrab);
|
|
||||||
}
|
|
||||||
pn = pn->next;
|
pn = pn->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue