File compiz-unmanaged-window-position.patch of Package compiz
Index: compiz-0.8.6/src/event.c
===================================================================
--- compiz-0.8.6.orig/src/event.c
+++ compiz-0.8.6/src/event.c
@@ -2042,11 +2042,11 @@ handleEvent (CompDisplay *d,
XWindowChanges xwc;
unsigned int xwcm, source;
- /* adjust for gravity */
+ /* adjust for gravity, but only for frame size */
xwc.x = w->serverX;
xwc.y = w->serverY;
- xwc.width = w->serverWidth;
- xwc.height = w->serverHeight;
+ xwc.width = 0;
+ xwc.height = 0;
xwcm = adjustConfigureRequestForGravity (w, &xwc,
CWX | CWY,
Index: compiz-0.8.6/src/window.c
===================================================================
--- compiz-0.8.6.orig/src/window.c
+++ compiz-0.8.6/src/window.c
@@ -2568,8 +2568,8 @@ unmapWindow (CompWindow *w)
/* revert gravity adjustment made at MapRequest time */
xwc.x = w->serverX;
xwc.y = w->serverY;
- xwc.width = w->serverWidth;
- xwc.height = w->serverHeight;
+ xwc.width = 0;
+ xwc.height = 0;
xwcm = adjustConfigureRequestForGravity (w, &xwc,
CWX | CWY,