Metacity is the default window manager for the Gnome desktop. The next major version of metacity (2.22) to be released later this year, will have a built in composite manager that will be enabled by default if libxcomposite is installed.
First you need to have ‘glx’ module enabled in the system’s xorg.conf file.
Section “Module”
……….
Load “glx”
……….
EndSection
and the xorg composite extension enabled. This should be enabled by default in xorg-server 1.4.x but for older releases, you need to add the following changes to your xorg config file.

