From a4fecaf9df8ce3a75945446e7883148518f68f2a Mon Sep 17 00:00:00 2001
From: Ruben Rodriguez <ruben@trisquel.info>
Date: Mon, 29 Nov 2021 14:26:22 -0500
Subject: [PATCH] compton: corrected issues with pluma, other improvements

---
 helpers/DATA/compton/compton.conf | 23 +++++++++--------------
 helpers/make-compton              |  4 ++--
 2 files changed, 11 insertions(+), 16 deletions(-)

diff --git a/helpers/DATA/compton/compton.conf b/helpers/DATA/compton/compton.conf
index 82c3d8da..015a5349 100644
--- a/helpers/DATA/compton/compton.conf
+++ b/helpers/DATA/compton/compton.conf
@@ -8,12 +8,11 @@
 # GLX backend is typically much faster but depends on a sane driver.
 backend = "glx";
 
-#################################
-#
-# GLX backend
-#
-#################################
+# Needed on some systems to avoid delay in changes of screen contents. (e.g. Pluma)
+xrender-sync         = true;
+xrender-sync-fence   = true;
 
+# GLX backend: Avoid using stencil buffer, useful if you don’t have a stencil buffer.
 glx-no-stencil = true;
 
 # GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
@@ -34,7 +33,6 @@ glx-copy-from-front = false;
 # Recommended if it works.
 # glx-no-rebind-pixmap = true;
 
-
 # GLX backend: GLX buffer swap method we assume.
 # Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
 # undefined is the slowest and the safest, and the default value.
@@ -62,13 +60,13 @@ no-dock-shadow = true;
 # Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows.
 clear-shadow = false;
 # The blur radius for shadows. (default 12)
-shadow-radius = 6;
+shadow-radius = 10;
 # The left offset for shadows. (default -15)
-shadow-offset-x = -9;
+shadow-offset-x = -12;
 # The top offset for shadows. (default -15)
-shadow-offset-y = -9;
+shadow-offset-y = -12;
 # The translucency for shadows. (default .75)
-shadow-opacity = 0.6;
+shadow-opacity = 0.4;
 
 # Set if you want different colour shadows
 # shadow-red = 0.0;
@@ -88,10 +86,7 @@ shadow-exclude = [
     "name = 'xfce4-notifyd'",
     "name *= 'VLC'",
     "name *= 'compton'",
-    "name *= 'Chromium'",
-    "name *= 'Chrome'",
     "name *= 'Firefox'",
-    "name *= 'Abrowser'",
     "name *= 'IceCat'",
     "name *= 'Totem'",
     "name *= 'XBMC'",
@@ -187,7 +182,7 @@ refresh-rate = 0;
 # opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental.
 # opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
 # (Note some VSync methods may not be enabled at compile time.)
-vsync = "opengl-swc";
+vsync = "opengl";
 
 # Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
 # Reported to have no effect, though.
diff --git a/helpers/make-compton b/helpers/make-compton
index 95564f30..94c318fa 100644
--- a/helpers/make-compton
+++ b/helpers/make-compton
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-#    Copyright (C) 2011-2020  Ruben Rodriguez <ruben@trisquel.info>
+#    Copyright (C) 2011-2021  Ruben Rodriguez <ruben@trisquel.info>
 #    Copyright (C) 2015  Francisco Javier Parra <franparpe@openmailbox.org>
 #
 #    This program is free software; you can redistribute it and/or modify
@@ -18,7 +18,7 @@
 #    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 #
 
-VERSION=9
+VERSION=10
 
 . ./config
 
-- 
GitLab