diff options
author | Ben Byer <bbyer@bbyer.local> | 2007-12-01 18:28:19 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremy@tifa.local> | 2007-12-01 19:04:06 -0800 |
commit | 83ba1e167c1473ac7d85239a6ee5ed629353cb16 (patch) | |
tree | 1df3b87c641a4039f19c418d92dbc47f018872da | |
parent | 9ad4560b3cbd42e647d6227746d4d037616d57cf (diff) |
added missing call to xcb_connect()
(cherry picked from commit dc2fb323ee11f081d447605be151024f9e2487f9)
-rw-r--r-- | hw/darwin/apple/bundle-main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/darwin/apple/bundle-main.c b/hw/darwin/apple/bundle-main.c index d46e7b2e8..10d2f2041 100644 --- a/hw/darwin/apple/bundle-main.c +++ b/hw/darwin/apple/bundle-main.c @@ -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); |