Comments: 
This patch for Metacity adds a few window-placement options that can be configured in the graphical gconf-editor or with the gconftool-2 command-line program.
The following options are available:
After installing the patched version of Metacity, you can change the option as follows:
In GNOME 2.10, open Configuration Editor from the following menu:
Applications --> System Tools --> Configuration Editor
|
/ --> apps --> metacity --> general
|
To change the option from the command line, do this:
gconftool-2 --type string --set /apps/metacity/general/placement_mode random
|
These commands need to be run as root, or preceded with a sudo.
You'll need a patch for the version of Metacity that you're going to compile
using emerge:
Add this line to your /etc/make.conf:Instructions for compiling with custom ebuild on Gentoo
NOTE: I have not updated these commands for Metacity 2.10,
but it should be similar.
metacity-2.8.6-window-placement.patch
metacity-2.8.8-window-placement.patch
metacity-2.8.13-window-placement.patch
(It may work with a mismatched version, but I haven't tried.)
PORTDIR_OVERLAY="/usr/local/portage"
|
Create the directory:
mkdir -p /usr/local/portage/x11-wm
|
Copy the official metacity build dir over:
cp -a /usr/portage/x11-wm/metacity /usr/local/portage/x11-wm/
|
Add the patch(es) to the files directory:
cp metacity-2.8.6-window-placement.patch /usr/local/portage/x11-wm/metacity/files/
|
Replace the ebuild file:
cp -f metacity-2.8.6-r1.ebuild /usr/local/portage/x11-wm/metacity/
|
Update the digest/manifest:
ebuild metacity-2.8.6-r1.ebuild digest
|
Now you should be able to rebuild Metacity using the usual Portage tools.