summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-12-17 13:00:23 -0800
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-12-17 13:00:23 -0800
commitc340932db548d1a3d4fc5bbc682b7730e5b2cf4a (patch)
treedd8126ee707cb69137d2f96bee5d5cb81ef2bb2f
parent89c1675d128da3477cac6858c4249b839ec68346 (diff)
Apple: Allow defaults option that maps to a -dpi server command line in startx
-rw-r--r--startx.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/startx.cpp b/startx.cpp
index 529366d..8a44965 100644
--- a/startx.cpp
+++ b/startx.cpp
@@ -128,6 +128,10 @@ if [ x`defaults read $X11_PREFS_DOMAIN nolisten_tcp` = x1 ] ; then
defaultserverargs="$defaultserverargs -nolisten tcp"
fi
+if defaults read $X11_PREFS_DOMAIN dpi >& /dev/null ; then
+ defaultserverargs="$defaultserverargs -dpi `defaults read $X11_PREFS_DOMAIN dpi`"
+fi
+
for ((d=0; ; d++)) ; do
[[ -e /tmp/.X$d-lock ]] || break
done