summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorPierre Willenbrock <pierre@pirsoft.de>2008-10-16 14:28:14 -0400
committerAdam Jackson <ajax@redhat.com>2008-10-16 14:28:14 -0400
commit8de26770a41ec87c46eed2eddfde6f867d71fe1f (patch)
tree063823c58fe56b1a6fdb84abd8080ee5fac9ccdd /randr
parentd936a4235c9625bd41569cef3452dd086284e0d7 (diff)
RANDR: Fix output property event delivery.
Diffstat (limited to 'randr')
-rw-r--r--randr/rrproperty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/randr/rrproperty.c b/randr/rrproperty.c
index 2f1f8fb66..9bc7254f9 100644
--- a/randr/rrproperty.c
+++ b/randr/rrproperty.c
@@ -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);
}