eric@eddie.MIT.EDU (Eric Van Tassell) (09/29/89)
I want to add a new event type via the XESetEventToWire and XESetWireToEvent mechanism. Having used those two functions I would like to use XSendEvent in response to some async data to send my new event to a client. The EventToWire function I wrote gets invoked but the WireToEvent one never does. This leads me to wonder "is a mask of ~0L going to cause XNextEvent to see my new event?". How do I associate a mask with my new event. There is a routine SetMaskForEvent() in the server but nobody seems to call it (according to Sun's nm). There is also this #define EXTENSION_EVENT_BASE 64 in server/dix/events.c. Could this be significant? Does anyone have an example of defining new events? How does one associate an event with a mask? TIA. eric-- Eric Van Tassell(dlcdev!eric@eddie.mit.edu) Progress Software Corp. 22B Cotton Rd. Nashua, NH 03063 {603-882-2488}
rws@EXPO.LCS.MIT.EDU (Bob Scheifler) (10/02/89)
I don't really understand what you're trying to do. If you're trying to pass a new event type between clients, you can't do it without changing the X server (defining an extension that supports the event). If you're just trying to create a new event type for use within a single client, you can't use XSendEvent to send it to yourself, XPutBackEvent is the only defined interface for this.