[Xcb] Implementing XTestFakeMotionEvent

Alan Coopersmith Alan.Coopersmith at Sun.COM
Fri May 1 00:15:40 PDT 2009


Charlls Quarra wrote:
> on a side note, from this code only can infer a few oddities about the implementation; req seems to be allocated in GetReq but somehow deallocated (or responsability moved) in SyncHandle or UnlockDisplay, but somehow req is not being passed so one can only guess the req pointer is being stored behind the scenes.. in any case, scary code to understand

In Xlib code, GetReq doesn't allocate new memory, it returns you a portion of
the Xlib buffer.   The buffer is reused for the life of the connection and
freed in CloseDisplay.   Data in the buffer is sent to the server on any of:
	1) buffer full
	2) client makes request that requires a response from the server
	3) client calls XFlush() or XSync()

-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Sun Microsystems, Inc. - X Window System Engineering



More information about the Xcb mailing list