[Xcb] xcb_parse_display and _xcb_open on Mac OS X

Antoine Latter aslatter at gmail.com
Sun Aug 17 08:56:41 PDT 2008


On Sat, Aug 16, 2008 at 8:00 PM, Barton C Massey <bart at cs.pdx.edu> wrote:
> Perhaps you need to build a patch that will look for a
> DISPLAY_BASE environment variable, or have MacOS-specific
> conditional code for XCB, or both?
>

Interestingly, I found this bit of code over in the libX11 code in
_XConnectXCB in xcb_disp.c:

>>>>>
#ifdef HAVE_LAUNCHD
	if(!display || !*display) display = getenv("DISPLAY");

	if(display && strlen(display)>11 && !strncmp(display, "/tmp/launch", 11)) {
		/* do nothing -- the magic happens inside of xcb_connect */
	} else
#endif
<<<<<

The libX11 code is already expecting xcb_connect to handle the launchd
(MacOS) special case.

Maybe I'm  missing something about what's happening in xcb_connect, then.

-Antoine


More information about the Xcb mailing list