summaryrefslogtreecommitdiff
path: root/startx.cpp
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-04-19 08:50:45 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-04-19 08:50:45 -0700
commit47d561fd6efb8923cfbace6fea40dfeb314b4662 (patch)
tree8d3072b17d83b77d19ddb8596cae8d3d495958d9 /startx.cpp
parentf6e75ebf5f7f245e1cdeb883a1d2db74f2451fd4 (diff)
Cleaned up handling of defaultserver{,args}
Per comments from Jeremy Reed on the list... basically doing for everyone what I do for Apple
Diffstat (limited to 'startx.cpp')
-rw-r--r--startx.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/startx.cpp b/startx.cpp
index 7e67769..c93812f 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -75,6 +75,7 @@ defaultclient=XTERM
defaultserver=XSERVER
defaultclientargs=""
defaultserverargs=""
+defaultdisplay=":0"
clientargs=""
serverargs=""
@@ -216,13 +217,9 @@ 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
-#ifdef __APPLE__
server=$defaultserver
serverargs=$defaultserverargs
- display="$defaultdisplay"
-#else
- server="$defaultserverargs"
-#endif
+ display=$defaultdisplay
else
server=$defaultserver
fi