From 5f8f2ba1c4f9ac74c8f301dcca8566e296e37995 Mon Sep 17 00:00:00 2001
From: Jeremy Huddleston <jeremyhu@apple.com>
Date: Sat, 21 Apr 2012 22:42:51 -0700
Subject: [PATCH] xcb_connect: launchd: Don't fall back on tcp if $DISPLAY is
 a path to a launchd socket

Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
---
 src/xcb_util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/xcb_util.c b/src/xcb_util.c
index f17aa3c..45f66cb 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -175,7 +175,7 @@ static int _xcb_open(const char *host, char *protocol, const int display)
     if(strncmp(host, "/tmp/launch", 11) == 0) {
         base = host;
         host = "";
-        protocol = NULL;
+        protocol = "unix";
     }
 #endif
 
-- 
1.7.10

