mate-session-manager: further improve composition management
This commit is contained in:
parent
5a6f5f8370
commit
2d8722eac8
2 changed files with 18 additions and 7 deletions
|
|
@ -40,9 +40,22 @@ for n in "$@" ; do
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
|
glxinfo |grep "OpenGL renderer"| grep -vi Gallium | grep -q .
|
||||||
|
IS_X_COMPOSITED=$?
|
||||||
|
|
||||||
# WINDOW_MANAGER overrides all
|
# WINDOW_MANAGER overrides all
|
||||||
if [ -z "$WINDOW_MANAGER" ] ; then
|
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
|
fi
|
||||||
|
|
||||||
# Migrate compiz to compiz-manager if possible and needed
|
# Migrate compiz to compiz-manager if possible and needed
|
||||||
|
|
@ -69,16 +82,14 @@ if [ -z "$WINDOW_MANAGER" ] ; then
|
||||||
# compositing ones when it makes sense
|
# compositing ones when it makes sense
|
||||||
|
|
||||||
KNOWN_WM="sawfish sawmill enlightenment icewm wmaker fvwm2 qvwm fvwm twm kwm"
|
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
|
if [ $IS_X_COMPOSITED -eq 0 ] ; then
|
||||||
KNOWN_WM="marco-compton mutter compiz-manager compiz beryl $KNOWN_WM"
|
KNOWN_WM="marco-compton mutter compiz-manager compiz beryl $KNOWN_WM"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# marco is still the default wm in MATE
|
||||||
|
KNOWN_WM="marco $KNOWN_WM"
|
||||||
|
|
||||||
OLDIFS=$IFS
|
OLDIFS=$IFS
|
||||||
if [ -z "$DEFWM" -o "x$DEFWM" = "xmate-wm" ]; then
|
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
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION=2
|
VERSION=3
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue