summaryrefslogtreecommitdiff
path: root/startx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'startx.cpp')
-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