[Xcb] Xproto generated values

Peter Harris peter at harr.ca
Wed Jun 4 07:22:12 PDT 2014


On Wed, Jun 4, 2014 at 3:40 AM, Elie Dac wrote:
> I'm just wondering if there is a new event in the future, what its
> value would be?

New events are added via extensions. Extension events are not at a
fixed number; you can call xcb_get_extension_data to find the event
base for an extension.

> To be clear, the last value is currently:
>
> #define XCB_MAPPING_NOTIFY 34
>
> Can a future event be inserted between two already existing events?

No.

> (which would change the value of all following events)

The event values are specified by the X11 protocol specification
http://www.x.org/releases/X11R7.7/doc/xproto/x11protocol.html#Encoding::Events
and cannot change.

Peter Harris


More information about the Xcb mailing list