[Xcb] xcb_parse_display and _xcb_open on Mac OS X
Barton C Massey
bart at cs.pdx.edu
Sun Aug 17 11:13:08 PDT 2008
In message <694519c50808170856r7188cfbm58ddeff6a62a83aa at mail.gmail.com> you wrote:
> 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
Weird. It looks like we should have an ifdef LAUNCHD
special case in the XCB code proper as well, but I can't see
any. Want to put in a patch and test it?
Bart
More information about the Xcb
mailing list