On Fri, 17 Sep 2010 09:42:07 +0100, Colin Guthrie <gmane at colin.guthr.ie> wrote: > I wonder if perhaps it's a problem that there are no screens :s I doubt it is legal for an X server to have zero screens. The DISPLAY syntax includes the screen number at the end... Do you check that the X11 connection was established successfully? IIRC, xcb_connect() returns a valid pointer even when it fails: Correct code: xcb_connection_t *conn = xcb_connect (display, NULL); if (xcb_connection_has_error (conn)) goto fail; Incorrect code: xcb_connection_t *conn = xcb_connect (display, NULL); if (conn == NULL) goto fail; -- R?mi Denis-Courmont http://www.remlab.net http://fi.linkedin.com/in/remidenis