added missing call to xcb_connect()

(cherry picked from commit dc2fb323ee)
This commit is contained in:
Ben Byer 2007-12-01 18:28:19 -08:00 committed by Jeremy Huddleston
parent ed66724b3a
commit 39d3a87c6c

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);