RANDR: Fix output property event delivery.

This commit is contained in:
Pierre Willenbrock 2008-10-16 14:28:14 -04:00 committed by Adam Jackson
parent d936a4235c
commit 8de26770a4

View File

@ -44,7 +44,13 @@ DeliverPropertyEvent(WindowPtr pWin, void *value)
if (!(pRREvent->mask & RROutputPropertyNotifyMask))
continue;
event->sequenceNumber = client->sequence;
event->window = pRREvent->window->drawable.id;
if (client->swapped) {
int n;
swaps(&event->sequenceNumber, n);
swapl(&event->window, n);
}
WriteEventsToClient(pRREvent->client, 1, (xEvent *)event);
}