xGenericEvent

Generic event

Those events are not part of the core protocol spec and can be used by various extensions. type is always GenericEvent extension is the minor opcode of the extension the event belongs to. evtype is the actual event type, unique __per extension__.

GenericEvents can be longer than 32 bytes, with the length field specifying the number of 4 byte blocks after the first 32 bytes.

version(linux)
@nogc
struct xGenericEvent {
BYTE type;
CARD8 extension;
CARD16 sequenceNumber;
CARD32 length;
CARD16 evtype;
CARD16 pad2;
CARD32 pad3;
CARD32 pad4;
CARD32 pad5;
CARD32 pad6;
CARD32 pad7;
}

Meta