Xext: add a few lines of comments to XGE.

This commit is contained in:
Peter Hutterer 2008-04-24 11:32:36 +09:30
parent 745b90cde1
commit d0890c40b9

View File

@ -178,7 +178,7 @@ static void GEClientCallback(CallbackListPtr *list,
pGEClient->minor_version = 0;
}
/* reset extension */
/* Reset extension. Called on server shutdown. */
static void
GEResetProc(ExtensionEntry *extEntry)
{
@ -190,7 +190,13 @@ GEResetProc(ExtensionEntry *extEntry)
GEEventType = 0;
}
/* Calls the registered event swap function for the extension. */
/* Calls the registered event swap function for the extension.
*
* Each extension can register a swap function to handle GenericEvents being
* swapped properly. The server calls SGEGenericEvent() before the event is
* written on the wire, this one calls the registered swap function to do the
* work.
*/
static void
SGEGenericEvent(xEvent* from, xEvent* to)
{
@ -207,7 +213,10 @@ SGEGenericEvent(xEvent* from, xEvent* to)
GEExtensions[gefrom->extension & 0x7F].evswap(gefrom, geto);
}
/* init extension, register at server */
/* Init extension, register at server.
* Since other extensions may rely on XGE (XInput does already), it is a good
* idea to init XGE first, before any other extension.
*/
void
GEExtensionInit(void)
{