Strange results from xdpyinfo

Glynn Clements glynn at gclements.plus.com
Tue Apr 26 10:45:28 UTC 2016


David C. Partridge wrote:

> Specifically there are multiple (many, many) results looking like:

If you run "glxinfo", you'll find that they differ in terms of their
GLX-specific properties (single-buffered or double-buffered, whether
they have an accumulation buffer, and the number of samples for MSAA).

> this is blowing the buffer for an application that uses xdpyinfo to
> determine the display resolution to use.

> Is there any fix for this problem?

Use a larger (i.e. dynamically-allocated) buffer, or avoid making a
copy (XGetVisualInfo() dynamically allocates the memory for the table
and returns a pointer to it).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the xorg mailing list