X11/src/xcl io.c,1.6,1.7

Jamey Sharp xlibs-commit at pdx.freedesktop.org
Mon Aug 2 08:00:09 PDT 2004


Committed by: jamey

Update of /cvs/xlibs/X11/src/xcl
In directory pdx:/tmp/cvs-serv14921/src/xcl

Modified Files:
	io.c 
Log Message:
2004-08-02  Jamey Sharp  <jamey at minilop.net>

	* src/xcl/io.c: (_XSetLastRequestRead)
	Added a comment to explain why sequence numbers should go
	backwards here. It was really confusing otherwise.


Index: io.c
===================================================================
RCS file: /cvs/xlibs/X11/src/xcl/io.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- io.c	19 Jun 2004 09:18:06 -0000	1.6
+++ io.c	2 Aug 2004 15:00:07 -0000	1.7
@@ -236,6 +236,12 @@
 
 	newseq = (xcb_seqnum & ~((unsigned long)0xffff)) | rep->sequenceNumber;
 
+	/* We're always trailing XCB's processing of responses here:
+	 * when we see a response, it's always one that XCB has already
+	 * counted in its sequence number stream. So we ensure that the
+	 * 32-bit sequence number that we pick is, in fact, less than or
+	 * equal to the last thing XCB processed, taking wrap into
+	 * account. */
 	if (newseq > xcb_seqnum)
 		newseq -= 0x10000;
 	assert(newseq <= dpy->request);



More information about the xlibs-commit mailing list