Skip to content
Snippets Groups Projects
Commit 2d8722ea authored by Ruben Rodriguez's avatar Ruben Rodriguez
Browse files

mate-session-manager: further improve composition management

parent 5a6f5f83
No related branches found
No related tags found
No related merge requests found
......@@ -40,9 +40,22 @@ for n in "$@" ; do
esac
done
glxinfo |grep "OpenGL renderer"| grep -vi Gallium | grep -q .
IS_X_COMPOSITED=$?
# WINDOW_MANAGER overrides all
if [ -z "$WINDOW_MANAGER" ] ; then
WINDOW_MANAGER=`gsettings get org.mate.session.required-components windowmanager 2> /dev/null`
WINDOW_MANAGER=`gsettings get org.mate.session.required-components windowmanager 2> /dev/null | sed s/\'//g`
fi
if [ "x$WINDOW_MANAGER" = "xmarco-compton" ] && [ $IS_X_COMPOSITED != 0 ]; then
WINDOW_MANAGER=marco-no-composite
gsettings set org.mate.session.required-components windowmanager marco-no-composite
fi
if [ "x$WINDOW_MANAGER" = "xmarco-compton" ] && [ $IS_X_COMPOSITED = 0 ]; then
WINDOW_MANAGER=marco-compton
gsettings set org.mate.session.required-components windowmanager marco-compton
fi
# Migrate compiz to compiz-manager if possible and needed
......@@ -69,16 +82,14 @@ if [ -z "$WINDOW_MANAGER" ] ; then
# compositing ones when it makes sense
KNOWN_WM="sawfish sawmill enlightenment icewm wmaker fvwm2 qvwm fvwm twm kwm"
# marco is still the default wm in MATE
KNOWN_WM="marco $KNOWN_WM"
#xdpyinfo 2> /dev/null | grep -q "^ *Composite$" 2> /dev/null
glxinfo |grep "OpenGL renderer"| grep -vi Gallium | grep -q .
IS_X_COMPOSITED=$?
if [ $IS_X_COMPOSITED -eq 0 ] ; then
KNOWN_WM="marco-compton mutter compiz-manager compiz beryl $KNOWN_WM"
fi
# marco is still the default wm in MATE
KNOWN_WM="marco $KNOWN_WM"
OLDIFS=$IFS
if [ -z "$DEFWM" -o "x$DEFWM" = "xmate-wm" ]; then
......
......@@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION=2
VERSION=3
. ./config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment