Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!husc6!mit-eddie!eric From: eric@eddie.MIT.EDU (Eric Van Tassell) Newsgroups: comp.windows.x Subject: How do I add an event type to X Message-ID: <12836@eddie.MIT.EDU> Date: 29 Sep 89 03:12:55 GMT Organization: MIT EE/CS Computer Facility, Cambridge, MA Lines: 18 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}