diff -r a1832ea486e9 Makefile.am --- a/Makefile.am Sun May 25 21:21:11 2008 +0200 +++ b/Makefile.am Sun May 25 21:30:47 2008 +0200 @@ -315,6 +315,7 @@ ICEDTEA_PATCHES = \ patches/icedtea-directaudio-close-trick.patch \ patches/icedtea-hat-spl-gpl.patch \ patches/icedtea-sparc.patch \ + patches/icedtea-override-redirect-metacity.patch \ $(GCC_PATCH) \ $(DISTRIBUTION_PATCHES) diff -r a1832ea486e9 Makefile.in --- a/Makefile.in Sun May 25 21:21:11 2008 +0200 +++ b/Makefile.in Sun May 25 21:30:47 2008 +0200 @@ -417,7 +417,8 @@ ICEDTEA_PATCHES = $(ZERO_PATCHES_COND) \ patches/icedtea-fonts.patch patches/icedtea-gervill.patch \ patches/icedtea-directaudio-close-trick.patch \ patches/icedtea-hat-spl-gpl.patch patches/icedtea-sparc.patch \ - $(GCC_PATCH) $(DISTRIBUTION_PATCHES) $(am__append_7) + patches/icedtea-override-redirect-metacity.patch $(GCC_PATCH) \ + $(DISTRIBUTION_PATCHES) $(am__append_7) # Patch OpenJDK for plug replacements and ecj. ICEDTEA_ECJ_PATCH = patches/icedtea-ecj.patch diff -r a1832ea486e9 patches/icedtea-override-redirect-metacity.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/icedtea-override-redirect-metacity.patch Sun May 25 21:30:47 2008 +0200 @@ -0,0 +1,19 @@ +--- openjdk/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java.orig 2008-05-25 17:31:31.000000000 +0200 ++++ openjdk/jdk/src/solaris/classes/sun/awt/X11/XWindowPeer.java 2008-05-25 17:33:32.000000000 +0200 +@@ -133,6 +133,7 @@ + private static final int MAXIMUM_BUFFER_LENGTH_NET_WM_ICON = (2<<15) - 1; + + void preInit(XCreateWindowParams params) { ++ target = (Component)params.get(TARGET); + params.put(REPARENTED, + Boolean.valueOf(isOverrideRedirect() || isSimpleWindow())); + super.preInit(params); +@@ -1122,6 +1123,8 @@ + + boolean isOverrideRedirect() { + return (XWM.getWMID() == XWM.OPENLOOK_WM ? true : false) || ++ (XWM.getWMID() == XWM.METACITY_WM ? true : false) || ++ target.getName().equals("###overrideRedirect###") || + XTrayIconPeer.isTrayIconStuffWindow((Window)target); + } +