mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-22 20:35:43 +00:00
added missing call to xcb_connect()
(cherry picked from commit dc2fb323ee11f081d447605be151024f9e2487f9)
This commit is contained in:
parent
9ad4560b3c
commit
83ba1e167c
1 changed files with 2 additions and 1 deletions
|
|
@ -613,8 +613,9 @@ display_exists_p (int number)
|
||||||
sprintf (buf, "/tmp/.X11-unix/X%d", number);
|
sprintf (buf, "/tmp/.X11-unix/X%d", number);
|
||||||
if (access (buf, F_OK) != 0)
|
if (access (buf, F_OK) != 0)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
sprintf (buf, ":%d", number);
|
sprintf (buf, ":%d", number);
|
||||||
|
conn = xcb_connect(buf, NULL);
|
||||||
if (xcb_connection_has_error(conn)) return FALSE;
|
if (xcb_connection_has_error(conn)) return FALSE;
|
||||||
|
|
||||||
xcb_disconnect(conn);
|
xcb_disconnect(conn);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue