changeset 875:ebc064e8892d

Add icedtea-override-redirect-metacity.patch. 2008-05-26 Mark Wielaard <mwielaard@redhat.com> * Makefile.am (ICEDTEA_PATCHES): Add patches/icedtea-override-redirect-metacity.patch. * Makefile.in: Regenerate. * patches/icedtea-override-redirect-metacity.patch: New patch.
author Mark Wielaard <mark@klomp.org>
date Mon, 26 May 2008 11:29:25 +0200
parents ecc9e751b854
children 4ec59f62f6ca
files ChangeLog Makefile.am Makefile.in patches/icedtea-override-redirect-metacity.patch
diffstat 4 files changed, 29 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun May 25 21:33:04 2008 +0200
+++ b/ChangeLog	Mon May 26 11:29:25 2008 +0200
@@ -1,3 +1,10 @@
+2008-05-26  Mark Wielaard  <mwielaard@redhat.com>
+
+	* Makefile.am (ICEDTEA_PATCHES): Add
+	patches/icedtea-override-redirect-metacity.patch.
+	* Makefile.in: Regenerate.
+	* patches/icedtea-override-redirect-metacity.patch: New patch.
+
 2008-05-25  Mark Wielaard  <mark@klomp.org>
 
 	* overlays/openjdk/jdk/src/share/classes/com/sun/media/sound:
--- a/Makefile.am	Sun May 25 21:33:04 2008 +0200
+++ b/Makefile.am	Mon May 26 11:29:25 2008 +0200
@@ -315,6 +315,7 @@
 	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)
 
--- a/Makefile.in	Sun May 25 21:33:04 2008 +0200
+++ b/Makefile.in	Mon May 26 11:29:25 2008 +0200
@@ -417,7 +417,8 @@
 	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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/icedtea-override-redirect-metacity.patch	Mon May 26 11:29:25 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);
+     }
+