On Sat, Dec 10, 2011 at 08:40:23AM -0800, Alan Coopersmith wrote:
> On 12/10/11 04:55, walter harms wrote:
> >>-static Mask filters[MAXDEVICES][128];
> >>+Mask filters[MAXDEVICES][128];
> >
> >could you please add a line that explains why 128 ?
> 
> There are 128 possible events in the X11 protocol, due to:
> 
>      Every event contains an 8-bit type code. The most significant bit in
>      this code is set if the event was generated from a SendEvent request.
> 
> leaving 7 bits for the event id.
> 
> http://www.x.org/releases/X11R7.6/doc/xproto/x11protocol.html#event_format

and to expand on that for the archives, events >= 64 are reserved for
extension events.

Cheers,
  Peter
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to