[Xcb] Switch for events with equal event number

Peter Harris pharris at opentext.com
Tue Jan 15 06:48:44 PST 2013

On 2013-01-15 07:38, Daniel Martin wrote:
> All XI2 events are generic events (number 35). Just based on this, we
> could use a big fat switch and merge all events in (I expect the switch
> to become 200+ lines).

Well, no, because other extensions (may) define generic events too.

> How could we fix that?

The only sane thing to do is to redefine number= to refer to
ge_event->event_type (not event->response_type) when the xge attribute
is present.

Peter Harris
               Open Text Connectivity Solutions Group
Peter Harris                    http://connectivity.opentext.com/
Research and Development        Phone: +1 905 762 6001
pharris at opentext.com            Toll Free: 1 877 359 4866

More information about the Xcb mailing list