Seems there’s an assumption in Sun Java 1.5 about window managers which causes it to bug out with Compiz & Xgl.
A temporary workaround is:
export AWT_TOOLKIT=MToolkit
or grab Compiz CVS and apply the following patches:
— dix/window.c 2006/05/29 18:12:27 1.1
+++ dix/window.c 2006/05/29 18:15:15
@ -1265,8 +1265,12 @
result = EventSelectForWindow(pWin, client, (Mask )*pVlist);
if (result)
{
- error = result;
- goto PatchUp;
+ if (vmask = SubstructureRedirectMask)
+ {
+ error = result;
+ goto PatchUp;
+ }
}
pVlist++;
break;
— src/window.c 6 Jun 2006 05:12:07 -0000 1.55
+++ src/window.c 6 Jun 2006 06:22:39 -0000
@ -2268,6 +2322,9 @
}
XConfigureWindow (w->screen->display->display, w->id, xwcm, xwc);
+
+ if (w->resName && strncmp (w->resName, “sun-awt-X11″, 11) 0)
+ sendConfigureNotify (w);
}
void
@@ -2283,6 +2340,9 @@
XMoveWindow (w->screen->display->display, w->frame,
w->attrib.x – w->input.left,
w->attrib.y – w->input.top);
+
+ if (w->resName && strncmp (w->resName, “sun-awt-X11″, 11) 0)
+ sendConfigureNotify (w);
}
}

Legendary – I’m a java developer and just installed compiz – was about to uninstall when I found this link.
June 11, 2006 @ 2:34 pm
Thank you a lot for this one.
I’ve not tested it extensively, but it works!!
I have Ubuntu Dapper with Xgl/Compiz from the repositories (just to let others know my configuration).
June 20, 2006 @ 3:47 am
Has this patch been sent to either java.sun.com or the compiz team?
Since sun is currently working java 1.6 it would be nice to see this fixed before it comes out in a final release version.
September 2, 2006 @ 11:42 pm
Found it: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6429775
September 3, 2006 @ 12:38 am
As far as I know, the compiz version Novell ships with SLED 10 has a patch along those lines at least.
September 3, 2006 @ 10:49 am