Index: gnome-session/gnome-wm =================================================================== --- gnome-session/gnome-wm.orig +++ gnome-session/gnome-wm @@ -55,6 +55,17 @@ if [ -z "$WINDOW_MANAGER" ] ; then OLDIFS=$IFS if [ -z "$DEFWM" -o "x$DEFWM" = "xgnome-wm" ]; then + + if /usr/bin/xdpyinfo | /usr/bin/grep -q '^vendor release number: *70000001'; then + if [ -x /usr/bin/compiz ]; then + if [ -z "$SMID" ]; then + exec /usr/bin/compiz --replace --sm-disable gconf + else + exec /usr/bin/compiz --replace --sm-client-id $SMID gconf + fi + fi + fi + for wm in $KNOWN_WM ; do IFS=":" for dir in $PATH ; do