added missing call to xcb_connect()

This commit is contained in:
Ben Byer 2007-12-01 18:28:19 -08:00
parent b6a98afe61
commit dc2fb323ee

View File

@ -613,8 +613,9 @@ display_exists_p (int number)
sprintf (buf, "/tmp/.X11-unix/X%d", number);
if (access (buf, F_OK) != 0)
return FALSE;
sprintf (buf, ":%d", number);
conn = xcb_connect(buf, NULL);
if (xcb_connection_has_error(conn)) return FALSE;
xcb_disconnect(conn);