From ada1e0a5605a81cfa4c38dcdd05b85af864a6b8e Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez <ruben@trisquel.info> Date: Sun, 25 Dec 2022 17:51:32 -0500 Subject: [PATCH] mate-session-manager: set org.mate.Marco.general compositing-manager flag --- helpers/DATA/mate-session-manager/mate-wm | 4 +++- helpers/make-mate-session-manager | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/helpers/DATA/mate-session-manager/mate-wm b/helpers/DATA/mate-session-manager/mate-wm index 7f8c5cb5..4cb02112 100755 --- a/helpers/DATA/mate-session-manager/mate-wm +++ b/helpers/DATA/mate-session-manager/mate-wm @@ -3,12 +3,14 @@ WINDOW_MANAGER=xterm [ -f /usr/bin/marco ] && WINDOW_MANAGER=marco [ -f /usr/bin/marco-no-composite ] && WINDOW_MANAGER=marco-no-composite +gsettings set org.mate.Marco.general compositing-manager false # Check for hardware acceleration if glxinfo -B | grep "OpenGL renderer string" | grep -qv llvmpipe ; then WINDOW_MANAGER=marco + gsettings set org.mate.Marco.general compositing-manager true # Use marco-glx (picom) on non-intel gpu, if available - if glxinfo -B | grep -qiv vendor.*intel; then + if ! glxinfo -B | grep -qi vendor.*intel; then if [ -f /usr/bin/picom ] && [ -f /usr/bin/marco-glx ] ; then WINDOW_MANAGER=marco-glx fi diff --git a/helpers/make-mate-session-manager b/helpers/make-mate-session-manager index 8e474a85..4a629175 100644 --- a/helpers/make-mate-session-manager +++ b/helpers/make-mate-session-manager @@ -17,7 +17,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=7 +VERSION=8 . ./config -- GitLab