summaryrefslogtreecommitdiff
path: root/startx.cpp
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-04-04 02:31:10 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-04-04 02:31:10 -0700
commitca08a36d10f15be6d230a9af92288da4cb24cd43 (patch)
tree4e045a3e4466af05ca6ee37aa180c5853a7f5766 /startx.cpp
parent8c52bd4509b7fe5a74026b5bc638d59add9e8945 (diff)
Apple: Fixed issue where display would not be passed correctly to the server if nolisten tcp was enabled.
Diffstat (limited to 'startx.cpp')
-rw-r--r--startx.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/startx.cpp b/startx.cpp
index c31ae10..d1d19d0 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -208,9 +208,12 @@ XCOMM process server arguments
if [ x"$server" = x ]; then
XCOMM if no server arguments or display either, use rc file instead
if [ x"$serverargs" = x -a x"$display" = x ]; then
- server="$defaultserverargs"
#ifdef __APPLE__
+ server=$defaultserver
+ serverargs=$defaultserverargs
display="$defaultdisplay"
+#else
+ server="$defaultserverargs"
#endif
else
server=$defaultserver