diff options
author | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2016-05-28 14:00:58 -0700 |
---|---|---|
committer | Jeremy Huddleston Sequoia <jeremyhu@apple.com> | 2016-05-28 14:00:58 -0700 |
commit | 4525e14fcfeaaf526227e3addec67d0ce4632270 (patch) | |
tree | 2002fcc7cb0e724cf2816a1240e3f8ab3c9f28c7 /startx.cpp | |
parent | 208a47e0d8f62e7c77fa42137511de890feea7fe (diff) |
startx: Add support for enabling IGLX for XQuartz
https://bugs.freedesktop.org/show_bug.cgi?id=96260
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
Diffstat (limited to 'startx.cpp')
-rw-r--r-- | startx.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -80,6 +80,10 @@ if ! defaults read $X11_PREFS_DOMAIN nolisten_tcp > /dev/null 2>&1 ; then defaults write $X11_PREFS_DOMAIN nolisten_tcp -bool true fi +if ! defaults read $X11_PREFS_DOMAIN enable_iglx > /dev/null 2>&1 ; then + defaults write $X11_PREFS_DOMAIN enable_iglx -bool false +fi + XCOMM First, start caching fonts if [ x`defaults read $X11_PREFS_DOMAIN cache_fonts` = x1 ] ; then if [ -x $bindir/font_cache ] ; then @@ -109,6 +113,12 @@ else defaultserverargs="$defaultserverargs -listen tcp" fi +if [ x`defaults read $X11_PREFS_DOMAIN enable_iglx` = x1 ] ; then + defaultserverargs="$defaultserverargs +iglx" +else + defaultserverargs="$defaultserverargs -iglx" +fi + XCOMM The second check is the real one. The first is to hopefully avoid XCOMM needless syslog spamming. if defaults read $X11_PREFS_DOMAIN 2> /dev/null | grep -q 'dpi' && defaults read $X11_PREFS_DOMAIN dpi > /dev/null 2>&1 ; then |