[PATCH xextproto 1/5] XGE: Add xGESendEventReq

Peter Harris pharris at opentext.com
Fri Sep 24 12:22:50 PDT 2010


On 2010-09-24 14:58, Mikhail Gusarov wrote:
> 
> Twas brillig at 20:29:39 24.09.2010 UTC+02 when carlosg at gnome.org did gyre and gimble:
> 
>  CG> Since xSendEventReq has a fixed size, it can't send xGenericEvents
>  CG> larger than 32bytes, there is a need for an alternative in Xge that
>  CG> is able to deal with variable-size events. The extension version is
>  CG> bumped to 1.1 since a new request has been added.
> 
> Am I right that this patchset works around Xlib implementation
> limitation by adding otherwise-useless request to GE extension?
> 
> According to
> http://cgit.freedesktop.org/xorg/proto/xextproto/tree/specs/geproto.xml#n74
> on the wire GE already supports variable-length events.

This is about the SendEvent request, not about the event itself.

The core protocol only supports 32-byte events in the SendEvent request.

In theory, I suppose you could just say that long events are supported
by SendEvent iff the GenericEventExtension version is >= 1.1 (and add
this functionality to ProcSendEvent instead). But it seems cleaner to
leave the core request alone.

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 xorg-devel mailing list