Hi,

i found randr property changes killed all my gtk applications. Checking
the protocol stream revealed broken sequence numbers for the randr
property events. The attached patch for xserver fixes this. I also added
support for "swapped" clients. The problem is introduced in
9187f6ad9ec7ba9569a93d92561aac17eaa83491.

Regards,
  Pierre
commit 00885688a0588f88ea5c6f8012d598d963ea0657
Author: Pierre Willenbrock <[EMAIL PROTECTED]>
Date:   Wed Oct 15 21:49:49 2008 +0200

    fix randr property event delivery

diff --git a/randr/rrproperty.c b/randr/rrproperty.c
index 2f1f8fb..9bc7254 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);
     }
 
_______________________________________________
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg

Reply via email to