enable vsync only for dri backend

This commit is contained in:
Von Random 2015-06-27 17:53:23 +03:00
parent a9074004eb
commit b29d66cc7e

View file

@ -11,11 +11,11 @@ if [[ -r $pidfile ]]; then
fi
if [[ -e $nvidia_dev ]]; then
vsync_backend='opengl'
vsync_backend=
else
vsync_backend='drm'
vsync_backend=('--vsync' 'drm')
fi
compton --vsync $vsync_backend -cGC -t-5 -l-5 -r4 -o.55 -m.9 &
compton $vsync_backend[@] -cGC -t-5 -l-5 -r4 -o.55 -m.9 &
pid=$!
if [[ -n $pid ]]; then
printf '%s' $pid > $pidfile