Cf. http://blog.blackdown.de/2007/11/15/compiz-patches/

Fix smart placement width/height confusion.

Signed-off-by: Juergen Kreileder <jk@blackdown.de>

diff -ur compiz-0.6.2+git20071101.orig/plugins/place.c compiz-0.6.2+git20071101/plugins/place.c
--- compiz-0.6.2+git20071101.orig/plugins/place.c	2007-10-19 12:29:17.000000000 +0200
+++ compiz-0.6.2+git20071101/plugins/place.c	2007-11-15 01:26:18.000000000 +0100
@@ -851,10 +851,10 @@
     xOptimal = xTmp; yOptimal = yTmp;
 
     /* client gabarit */
-    int ch = get_window_height (window) + window->input.left +
-	     window->input.right - 1;
-    int cw = get_window_width (window) + window->input.top +
+    int ch = get_window_height (window) + window->input.top +
 	     window->input.bottom - 1;
+    int cw = get_window_width (window) + window->input.left +
+	     window->input.right - 1;
 
     /* loop over possible positions */
     do
=
