Stefan Dirsch wrote:
> Hi
>
> Looks like the XFree86 GLX/DRI OpenGL client lib always tries to
> connect to :0.0, even if DISPLAY=<machine>:10.0. Any fix known for
> this issue? I'm using XFree86 4.2.0 on Linux.
>
> xxx@machine1> ssh -X machine2
> xxx@machine2> echo $DISPLAY
> localhost:10.0
> xxx@machine2> gears
> Xlib: connection to ":0.0" refused by server
> Xlib: No protocol specified
>
> The OpenGL program starts regularly on the DISPLAY, which was
> specified. It's more a confusing warning.
This happens during the process of GLX initialization when we're
looking for the local DRI drivers (needed for glXGetProcAddress,
a long story).
It would be nice if Xlib could be told not to print messages like
this to stderr.
From xc/lib/X11/OpenDis.c, XOpenDisplay():
if (prefix.success != xTrue) {
/* XXX - printing messages marks a bad programming interface */
fprintf (stderr,
"Xlib: connection to \"%s\" refused by server\r\nXlib: ",
fullname);
(void) fwrite (u.failure, (Size_t)sizeof(char),
(Size_t)prefix.lengthReason, stderr);
(void) fwrite ("\r\n", sizeof(char), 2, stderr);
OutOfMemory(dpy, setup);
return (NULL);
}
David, any thoughts on adding a mechanism to Xlib to suppress these messages?
-Brian
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel