[comp.windows.x] adding extension events

dwig@ingr.com (David Wiggins) (10/24/89)

While investigating the possibility of adding an extension event to X,
I've found an inconsistency that I hope somebody can explain.  It seems
that the machinery to generate unique masks for extension events is
already in place, but there's no way to tell clients what those
generated masks are. 

Section 4.5 of the X11 Server Extensions Engineering Specification:

	"If multiple clients need to select on an event, an event  mask
	 must be  assigned  to the event number.  Two routines are supplied 
	 by the server to facilitate getting and setting event masks."

GetNextEventMask() and SetMaskForEvent(mask,event) are then described.

However, on page 10, X11R3 Protocol:

	"Event codes 64 through 127 are reserved for extensions,
	 although the core protocol does not define a mechanism
	 for selecting interest in such events."

What am I missing?

David P. Wiggins  uunet!ingr!b11!sr71!dwig

rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (10/24/89)

    It seems
    that the machinery to generate unique masks for extension events is
    already in place, but there's no way to tell clients what those
    generated masks are. 

    What am I missing?

Nothing.  Yes there is code in the sample server, but no there isn't
any general mechanism for exporting such events in the core protocol.

In general, extension definers have decided against trying to use
the same event mask as the core protocol (partly because there are
so few bits remaining), and just define their own selection mechanism
as part of the extension.