RANDR: Fix output property event delivery.

(cherry picked from commit 8de26770a4)
This commit is contained in:
Pierre Willenbrock 2008-10-16 14:28:14 -04:00 committed by Adam Jackson
parent 42429aa326
commit df22857b34

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);
}