From b29d66cc7ed333ad1879b61d8c43471e8c59417a Mon Sep 17 00:00:00 2001 From: Von Random Date: Sat, 27 Jun 2015 17:53:23 +0300 Subject: [PATCH] enable vsync only for dri backend --- compton_toggle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compton_toggle b/compton_toggle index 72d3f36..7abaf99 100755 --- a/compton_toggle +++ b/compton_toggle @@ -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