From eb8efb1042028b97ca84b55d254029a5ee2b00a3 Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Fri, 17 Apr 2020 23:35:12 -0400
Subject: [PATCH] Further disable compton if no acceleration

---
 helpers/make-mate-tweak | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/helpers/make-mate-tweak b/helpers/make-mate-tweak
index bf2f713d..219fc640 100644
--- a/helpers/make-mate-tweak
+++ b/helpers/make-mate-tweak
@@ -18,7 +18,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=4
+VERSION=5
 
 . ./config
 
@@ -27,6 +27,7 @@ sed -i 's/Manjaro/Trisquel/g' mate-tweak
 
 # Disable composition on llvm
 sed 's/Software Rasterizer/Accelerated: no/' -i mate-tweak
+sed '/no-composite/a # Do not run without 3D acceleration\nglxinfo | grep -q "Accelerated: no" && exit 0\n' -i marco-compton
 
 # Allow loading global compton config file
 sed '/config \/dev\/null/d' -i marco-compton
-- 
GitLab