added missing call to xcb_connect()
(cherry picked from commit dc2fb323ee
)
This commit is contained in:
parent
ed66724b3a
commit
39d3a87c6c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user