Proposed libX11 ABI break
Eamon Walsh
ewalsh at tycho.nsa.gov
Fri Jun 26 12:46:26 PDT 2009
Peter Hutterer wrote:
> This week, I ran into a wall trying to get XI2 events sorted out. Resolving
> this may require a libX11 ABI break. This is NOT XI2 specific, it just
> happens to be the first extension to run into this issue.
> This is a rather lengthy email, please take the time and read it.
>
> == Problem ==
> XNextEvent(Display*, XEvent*) requires the event to be 96 (32-bit) or 192
> (64-bit) bytes. This is a side-effect of the definition of the XEvent
> structure itself.
>
> XGE's long events may require structs that exceed this space. For XI2, the
> solution I have used so far are pointers inside the respective XEvent struct
> that point to other allocated memory. The client is required to call
> XIFreeEventData() to ensure this extra memory is freed accordingly.
>
>
Why don't we just not support returning XGE events from those old
functions ?
More information about the xorg-devel
mailing list