# This file is sourced by Xsession(5), not executed.

XGL_START=/usr/share/xserver-xgl/Xgl-session
XGL_DISPLAY=:1
XGL_OPTS="-nolisten tcp -fullscreen -br +xinerama"

if [ -n $XDG_CONFIG_HOME ] ; then
    KILLSWITCH=$HOME/.config/xserver-xgl/disable
else
    KILLSWITCH=$XDG_CONFIG_HOME/xserver-xgl/disable
fi

if [ -x $XGL_START ] && [ ! -e $KILLSWITCH ]; then
	STARTUP="$XGL_START $XGL_DISPLAY $XGL_OPTS --execute $STARTUP"
fi
