/hg/release/icedtea6-1.8: 2 new changesets
andrew at icedtea.classpath.org
andrew at icedtea.classpath.org
Fri Jul 16 09:11:43 PDT 2010
changeset b1dfd5460bf9 in /hg/release/icedtea6-1.8
details: http://icedtea.classpath.org/hg/release/icedtea6-1.8?cmd=changeset;node=b1dfd5460bf9
author: Jon VanAlten <jon.vanalten at redhat.com>
date: Fri Jul 16 17:08:40 2010 +0100
Restore icedtea-override-metacity.patch to allow full screen apps
and other expected behavioral improvements.
2010-07-14 Jon VanAlten <jon.vanalten at redhat.com>
* patches/icedtea-override-redirect-metacity.patch: Produces
the "expected" behavior for full screen applications or
other situations where developers wish to present elements
that would cover things like panels.
* Makefile.am: Apply icedtea-override-redirect-metacity.patch.
changeset faa4f2e58846 in /hg/release/icedtea6-1.8
details: http://icedtea.classpath.org/hg/release/icedtea6-1.8?cmd=changeset;node=faa4f2e58846
author: Deepak Bhole <dbhole at redhat.com>
date: Fri Jul 16 17:11:31 2010 +0100
Backpatched from jdk7 for upstream bug#6678385. Fixes rhbz# 551835.
Fixes jvm crashes when window is resized.
2010-07-15 Deepak Bhole <dbhole at redhat.com>
* patches/openjdk/6678385.patch: New file. Backpatched from
jdk7 for upstream bug#6678385. Fixes rhbz# 551835. Fixes jvm
crashes when window is resized.
diffstat:
4 files changed, 1277 insertions(+), 1 deletion(-)
ChangeLog | 22
Makefile.am | 4
patches/icedtea-override-redirect-metacity.patch | 11
patches/openjdk/6678385.patch | 1241 ++++++++++++++++++++++
diffs (truncated from 1303 to 500 lines):
diff -r cc8ca057c727 -r faa4f2e58846 ChangeLog
--- a/ChangeLog Tue Jul 13 11:46:10 2010 +0200
+++ b/ChangeLog Fri Jul 16 17:11:31 2010 +0100
@@ -1,3 +1,25 @@ 2010-07-13 Mark Wielaard <mjw at redhat.c
+2010-07-15 Deepak Bhole <dbhole at redhat.com>
+
+ * patches/openjdk/6678385.patch: New file. Backpatched from jdk7 for
+ upstream bug#6678385. Fixes rhbz# 551835. Fixes jvm crashes when window is
+ resized.
+
+2010-07-14 Jon VanAlten <jon.vanalten at redhat.com>
+
+ * patches/icedtea-override-redirect-metacity.patch: Produces the
+ "expected" behavior for full screen applications or other situations
+ where developers wish to present elements that would cover things like
+ panels. We previously had a version of this patch since changeset 876
+ ebc064e8892d, but dropped it in changeset changeset 1731
+ 83619682858e because upstream had rejected as a metacity bug[1].
+ Metacity maintains that this behavior does not break any spec and does
+ not appear likely to change either[2], so we must be the "good guys" and
+ provide the expected behavior. See discussion[3].
+ [1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6514512
+ [2] https://bugzilla.gnome.org/show_bug.cgi?id=405269
+ [3] http://mail.openjdk.java.net/pipermail/distro-pkg-dev/2010-April/008862.html
+ * Makefile.am: Apply icedtea-override-redirect-metacity.patch.
+
2010-07-13 Mark Wielaard <mjw at redhat.com>
Reported by William Cohen <wcohen at redhat.com>
diff -r cc8ca057c727 -r faa4f2e58846 Makefile.am
--- a/Makefile.am Tue Jul 13 11:46:10 2010 +0200
+++ b/Makefile.am Fri Jul 16 17:11:31 2010 +0100
@@ -326,7 +326,9 @@ ICEDTEA_PATCHES = \
patches/security/20100330/6932480.patch \
patches/ant-1.8.0.patch \
patches/icedtea-nss-6763530.patch \
- patches/nss-debug.patch
+ patches/nss-debug.patch \
+ patches/icedtea-override-redirect-metacity.patch \
+ patches/openjdk/6678385.patch
if WITH_RHINO
ICEDTEA_PATCHES += \
diff -r cc8ca057c727 -r faa4f2e58846 patches/icedtea-override-redirect-metacity.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/icedtea-override-redirect-metacity.patch Fri Jul 16 17:11:31 2010 +0100
@@ -0,0 +1,11 @@
+--- 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
+@@ -1124,6 +1124,8 @@
+
+ boolean isOverrideRedirect() {
+ return (XWM.getWMID() == XWM.OPENLOOK_WM ? true : false) ||
++ (XWM.getWMID() == XWM.METACITY_WM ? true : false) ||
++ target.getName().equals("###overrideRedirect###") ||
+ ((XToolkit)Toolkit.getDefaultToolkit()).isOverrideRedirect((Window)target) ||
+ XTrayIconPeer.isTrayIconStuffWindow((Window)target);
+ }
diff -r cc8ca057c727 -r faa4f2e58846 patches/openjdk/6678385.patch
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/patches/openjdk/6678385.patch Fri Jul 16 17:11:31 2010 +0100
@@ -0,0 +1,1241 @@
+# HG changeset patch
+# User art
+# Date 1242387635 -14400
+# Node ID f62f7fcc9965cd0b110f07b4cd42c419f77717c1
+# Parent b28b073e72b625a4d8b6e71010a2968b5fc85124
+6678385: Random java.lang.StackOverflowError from various JDKs
+Reviewed-by: stayer
+
+IcedTea6 note: This patch (upstream bz#6678385) fixes rhbz# 551835.
+
+diff -uNr openjdk.orig/jdk/make/sun/xawt/mapfile-vers openjdk/jdk/make/sun/xawt/mapfile-vers
+--- openjdk.orig/jdk/make/sun/xawt/mapfile-vers 2010-07-15 10:28:21.755105655 -0400
++++ openjdk/jdk/make/sun/xawt/mapfile-vers 2010-07-15 10:28:42.630981569 -0400
+@@ -125,6 +125,7 @@
+ Java_sun_awt_X11_XlibWrapper_SetToolkitErrorHandler;
+ Java_sun_awt_X11_XlibWrapper_XSetErrorHandler;
+ Java_sun_awt_X11_XlibWrapper_CallErrorHandler;
++ Java_sun_awt_X11_XlibWrapper_PrintXErrorEvent;
+ Java_sun_awt_X11_XlibWrapper_XInternAtoms;
+ Java_sun_awt_X11_XlibWrapper_XChangeWindowAttributes;
+ Java_sun_awt_X11_XlibWrapper_XDeleteProperty;
+@@ -269,7 +270,6 @@
+ Java_sun_awt_X11_XToolkit_getDefaultXColormap;
+ Java_sun_awt_X11_XToolkit_getDefaultScreenData;
+ Java_sun_awt_X11_XToolkit_getEnv;
+- Java_sun_awt_X11_XToolkit_setNoisyXErrorHandler;
+ Java_sun_awt_X11_XlibWrapper_XCreateBitmapFromData;
+ Java_sun_awt_X11_XlibWrapper_XFreePixmap;
+ Java_sun_awt_X11_XlibWrapper_XAllocColor;
+diff -uNr openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/MotifDnDConstants.java openjdk/jdk/src/solaris/classes/sun/awt/X11/MotifDnDConstants.java
+--- openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/MotifDnDConstants.java 2010-07-15 10:28:21.905105617 -0400
++++ openjdk/jdk/src/solaris/classes/sun/awt/X11/MotifDnDConstants.java 2010-07-15 10:28:42.631981678 -0400
+@@ -119,7 +119,7 @@
+ false,
+ XlibWrapper.AnyPropertyType);
+ try {
+- int status = wpg.execute(XToolkit.IgnoreBadWindowHandler);
++ int status = wpg.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status == XlibWrapper.Success &&
+ wpg.getData() != 0 &&
+@@ -189,7 +189,7 @@
+ try {
+ Native.putLong(data, motifWindow);
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XlibWrapper.XChangeProperty(XToolkit.getDisplay(),
+ defaultRootWindow,
+ XA_MOTIF_DRAG_WINDOW.getAtom(),
+@@ -276,7 +276,7 @@
+ false,
+ XA_MOTIF_DRAG_TARGETS.getAtom());
+ try {
+- int status = wpg.execute(XToolkit.IgnoreBadWindowHandler);
++ int status = wpg.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status != XlibWrapper.Success
+ || wpg.getActualType() != XA_MOTIF_DRAG_TARGETS.getAtom()
+@@ -390,7 +390,7 @@
+ }
+ }
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XlibWrapper.XChangeProperty(XToolkit.getDisplay(),
+ motifWindow,
+ XA_MOTIF_DRAG_TARGETS.getAtom(),
+@@ -406,7 +406,7 @@
+ // Create a new motif window and retry.
+ motifWindow = createMotifWindow();
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XlibWrapper.XChangeProperty(XToolkit.getDisplay(),
+ motifWindow,
+ XA_MOTIF_DRAG_TARGETS.getAtom(),
+@@ -530,7 +530,7 @@
+ // CARD32 icc_handle
+ unsafe.putInt(structData + 4, (int)XA_MOTIF_ATOM_0.getAtom());
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XlibWrapper.XChangeProperty(XToolkit.getDisplay(), window,
+ XA_MOTIF_ATOM_0.getAtom(),
+ XA_MOTIF_DRAG_INITIATOR_INFO.getAtom(),
+@@ -563,7 +563,7 @@
+ unsafe.putShort(data + 10, (short)0); /* pad */
+ unsafe.putInt(data + 12, dataSize);
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XlibWrapper.XChangeProperty(XToolkit.getDisplay(), window,
+ XA_MOTIF_DRAG_RECEIVER_INFO.getAtom(),
+ XA_MOTIF_DRAG_RECEIVER_INFO.getAtom(),
+diff -uNr openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDragSourceProtocol.java openjdk/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDragSourceProtocol.java
+--- openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDragSourceProtocol.java 2010-07-15 10:28:21.905105617 -0400
++++ openjdk/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDragSourceProtocol.java 2010-07-15 10:28:42.633981353 -0400
+@@ -184,7 +184,7 @@
+ XlibWrapper.AnyPropertyType);
+
+ try {
+- int status = wpg.execute(XToolkit.IgnoreBadWindowHandler);
++ int status = wpg.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ /*
+ * DragICCI.h:
+diff -uNr openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java openjdk/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java
+--- openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java 2010-07-15 10:28:21.904105558 -0400
++++ openjdk/jdk/src/solaris/classes/sun/awt/X11/MotifDnDDropTargetProtocol.java 2010-07-15 10:28:42.636014780 -0400
+@@ -102,7 +102,7 @@
+ XlibWrapper.AnyPropertyType);
+
+ try {
+- status = wpg.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ /*
+ * DragICCI.h:
+@@ -162,7 +162,7 @@
+ unsafe.putInt(data + 12, dataSize);
+ }
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XlibWrapper.XChangeProperty(XToolkit.getDisplay(), embedder,
+ MotifDnDConstants.XA_MOTIF_DRAG_RECEIVER_INFO.getAtom(),
+ MotifDnDConstants.XA_MOTIF_DRAG_RECEIVER_INFO.getAtom(),
+@@ -204,7 +204,7 @@
+ XlibWrapper.AnyPropertyType);
+
+ try {
+- status = wpg.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ /*
+ * DragICCI.h:
+@@ -236,7 +236,7 @@
+
+ unsafe.putInt(data + 4, tproxy);
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XlibWrapper.XChangeProperty(XToolkit.getDisplay(), embedder,
+ MotifDnDConstants.XA_MOTIF_DRAG_RECEIVER_INFO.getAtom(),
+ MotifDnDConstants.XA_MOTIF_DRAG_RECEIVER_INFO.getAtom(),
+@@ -276,7 +276,7 @@
+ XlibWrapper.AnyPropertyType);
+
+ try {
+- status = wpg.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ /*
+ * DragICCI.h:
+@@ -325,7 +325,7 @@
+ XlibWrapper.AnyPropertyType);
+
+ try {
+- int status = wpg.execute(XToolkit.IgnoreBadWindowHandler);
++ int status = wpg.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status == (int)XlibWrapper.Success && wpg.getData() != 0 &&
+ wpg.getActualType() != 0 && wpg.getActualFormat() == 8 &&
+@@ -375,7 +375,7 @@
+ MotifDnDConstants.XA_MOTIF_DRAG_INITIATOR_INFO.getAtom());
+
+ try {
+- int status = wpg.execute(XToolkit.IgnoreBadWindowHandler);
++ int status = wpg.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status == XlibWrapper.Success && wpg.getData() != 0 &&
+ wpg.getActualType() ==
+@@ -412,7 +412,7 @@
+ */
+ XWindowAttributes wattr = new XWindowAttributes();
+ try {
+- XToolkit.WITH_XERROR_HANDLER(XToolkit.IgnoreBadWindowHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+ int status = XlibWrapper.XGetWindowAttributes(XToolkit.getDisplay(),
+ source_win, wattr.pData);
+
+@@ -429,7 +429,7 @@
+ wattr.dispose();
+ }
+
+- XToolkit.WITH_XERROR_HANDLER(XToolkit.IgnoreBadWindowHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+ XlibWrapper.XSelectInput(XToolkit.getDisplay(), source_win,
+ source_win_mask |
+ XlibWrapper.StructureNotifyMask);
+@@ -1020,7 +1020,7 @@
+ if (sourceWindow != 0) {
+ XToolkit.awtLock();
+ try {
+- XToolkit.WITH_XERROR_HANDLER(XToolkit.IgnoreBadWindowHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+ XlibWrapper.XSelectInput(XToolkit.getDisplay(), sourceWindow,
+ sourceWindowMask);
+ XToolkit.RESTORE_XERROR_HANDLER();
+diff -uNr openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/WindowPropertyGetter.java openjdk/jdk/src/solaris/classes/sun/awt/X11/WindowPropertyGetter.java
+--- openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/WindowPropertyGetter.java 2010-07-15 10:28:21.900105578 -0400
++++ openjdk/jdk/src/solaris/classes/sun/awt/X11/WindowPropertyGetter.java 2010-07-15 10:28:42.637046074 -0400
+@@ -75,7 +75,7 @@
+ public int execute() {
+ return execute(null);
+ }
+- public int execute(XToolkit.XErrorHandler errorHandler) {
++ public int execute(XErrorHandler errorHandler) {
+
+ XToolkit.awtLock();
+ try {
+@@ -94,7 +94,7 @@
+
+ // Fix for performance problem - IgnodeBadWindowHandler is
+ // used too much without reason, just ignore it
+- if (errorHandler == XToolkit.IgnoreBadWindowHandler) {
++ if (errorHandler instanceof XErrorHandler.IgnoreBadWindowHandler) {
+ errorHandler = null;
+ }
+
+diff -uNr openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/XAWTXSettings.java openjdk/jdk/src/solaris/classes/sun/awt/X11/XAWTXSettings.java
+--- openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/XAWTXSettings.java 2010-07-15 10:28:21.896105637 -0400
++++ openjdk/jdk/src/solaris/classes/sun/awt/X11/XAWTXSettings.java 2010-07-15 10:28:42.637981716 -0400
+@@ -122,7 +122,7 @@
+ new WindowPropertyGetter(owner, xSettingsPropertyAtom, 0, MAX_LENGTH,
+ false, xSettingsPropertyAtom.getAtom() );
+ try {
+- int status = getter.execute(XToolkit.IgnoreBadWindowHandler);
++ int status = getter.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status != XlibWrapper.Success || getter.getData() == 0) {
+ if (log.isLoggable(Level.FINE)) log.fine("OH OH : getter failed status = " + status );
+diff -uNr openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java openjdk/jdk/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java
+--- openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java 2010-07-15 10:28:21.895105718 -0400
++++ openjdk/jdk/src/solaris/classes/sun/awt/X11/XDecoratedPeer.java 2010-07-15 10:28:42.640232090 -0400
+@@ -1155,7 +1155,8 @@
+ }
+
+ boolean isOverrideRedirect() {
+- return false;
++// return false;
++ return ((XToolkit)Toolkit.getDefaultToolkit()).isOverrideRedirect((Window)target);
+ }
+
+ public boolean requestWindowFocus(long time, boolean timeProvided) {
+diff -uNr openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/XDnDDragSourceProtocol.java openjdk/jdk/src/solaris/classes/sun/awt/X11/XDnDDragSourceProtocol.java
+--- openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/XDnDDragSourceProtocol.java 2010-07-15 10:28:21.906105640 -0400
++++ openjdk/jdk/src/solaris/classes/sun/awt/X11/XDnDDragSourceProtocol.java 2010-07-15 10:28:42.642232277 -0400
+@@ -96,7 +96,7 @@
+ action_count++;
+ }
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XDnDConstants.XA_XdndActionList.setAtomData(window,
+ XAtom.XA_ATOM,
+ data, action_count);
+@@ -117,7 +117,7 @@
+ try {
+ Native.put(data, formats);
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XDnDConstants.XA_XdndTypeList.setAtomData(window,
+ XAtom.XA_ATOM,
+ data, formats.length);
+@@ -195,7 +195,7 @@
+ new WindowPropertyGetter(window, XDnDConstants.XA_XdndAware, 0, 1,
+ false, XlibWrapper.AnyPropertyType);
+
+- int status = wpg1.execute(XToolkit.IgnoreBadWindowHandler);
++ int status = wpg1.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status == XlibWrapper.Success &&
+ wpg1.getData() != 0 && wpg1.getActualType() == XAtom.XA_ATOM) {
+@@ -215,7 +215,7 @@
+ 0, 1, false, XAtom.XA_WINDOW);
+
+ try {
+- status = wpg2.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg2.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status == XlibWrapper.Success &&
+ wpg2.getData() != 0 &&
+@@ -233,7 +233,7 @@
+ 0, 1, false, XAtom.XA_WINDOW);
+
+ try {
+- status = wpg3.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg3.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status != XlibWrapper.Success ||
+ wpg3.getData() == 0 ||
+@@ -249,7 +249,7 @@
+ XlibWrapper.AnyPropertyType);
+
+ try {
+- status = wpg4.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg4.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status != XlibWrapper.Success ||
+ wpg4.getData() == 0 ||
+diff -uNr openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/XDnDDropTargetProtocol.java openjdk/jdk/src/solaris/classes/sun/awt/X11/XDnDDropTargetProtocol.java
+--- openjdk.orig/jdk/src/solaris/classes/sun/awt/X11/XDnDDropTargetProtocol.java 2010-07-15 10:28:21.903105589 -0400
++++ openjdk/jdk/src/solaris/classes/sun/awt/X11/XDnDDropTargetProtocol.java 2010-07-15 10:28:42.645236553 -0400
+@@ -88,7 +88,7 @@
+ try {
+ Native.putLong(data, 0, XDnDConstants.XDND_PROTOCOL_VERSION);
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XDnDConstants.XA_XdndAware.setAtomData(window, XAtom.XA_ATOM, data, 1);
+ XToolkit.RESTORE_XERROR_HANDLER();
+
+@@ -122,7 +122,7 @@
+ false, XlibWrapper.AnyPropertyType);
+
+ try {
+- status = wpg1.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg1.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status == XlibWrapper.Success &&
+ wpg1.getData() != 0 && wpg1.getActualType() == XAtom.XA_ATOM) {
+@@ -141,7 +141,7 @@
+ 0, 1, false, XAtom.XA_WINDOW);
+
+ try {
+- status = wpg2.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg2.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status == XlibWrapper.Success &&
+ wpg2.getData() != 0 &&
+@@ -159,7 +159,7 @@
+ 0, 1, false, XAtom.XA_WINDOW);
+
+ try {
+- status = wpg3.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg3.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status != XlibWrapper.Success ||
+ wpg3.getData() == 0 ||
+@@ -175,7 +175,7 @@
+ XlibWrapper.AnyPropertyType);
+
+ try {
+- status = wpg4.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg4.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status != XlibWrapper.Success ||
+ wpg4.getData() == 0 ||
+@@ -205,7 +205,7 @@
+
+ /* The proxy window must have the XdndAware set, as XDnD protocol
+ prescribes to check the proxy window for XdndAware. */
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XDnDConstants.XA_XdndAware.setAtomData(newProxy, XAtom.XA_ATOM,
+ data, 1);
+ XToolkit.RESTORE_XERROR_HANDLER();
+@@ -219,7 +219,7 @@
+ Native.putLong(data, 0, newProxy);
+
+ /* The proxy window must have the XdndProxy set to point to itself.*/
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XDnDConstants.XA_XdndProxy.setAtomData(newProxy, XAtom.XA_WINDOW,
+ data, 1);
+ XToolkit.RESTORE_XERROR_HANDLER();
+@@ -232,7 +232,7 @@
+
+ Native.putLong(data, 0, XDnDConstants.XDND_PROTOCOL_VERSION);
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XDnDConstants.XA_XdndAware.setAtomData(embedder, XAtom.XA_ATOM,
+ data, 1);
+ XToolkit.RESTORE_XERROR_HANDLER();
+@@ -245,7 +245,7 @@
+
+ Native.putLong(data, 0, newProxy);
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XDnDConstants.XA_XdndProxy.setAtomData(embedder, XAtom.XA_WINDOW,
+ data, 1);
+ XToolkit.RESTORE_XERROR_HANDLER();
+@@ -278,7 +278,7 @@
+ try {
+ Native.putLong(data, 0, entry.getVersion());
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XDnDConstants.XA_XdndAware.setAtomData(embedder, XAtom.XA_ATOM,
+ data, 1);
+ XToolkit.RESTORE_XERROR_HANDLER();
+@@ -291,7 +291,7 @@
+
+ Native.putLong(data, 0, (int)entry.getProxy());
+
+- XToolkit.WITH_XERROR_HANDLER(XWM.VerifyChangePropertyHandler);
++ XToolkit.WITH_XERROR_HANDLER(XErrorHandler.VerifyChangePropertyHandler.getInstance());
+ XDnDConstants.XA_XdndProxy.setAtomData(embedder, XAtom.XA_WINDOW,
+ data, 1);
+ XToolkit.RESTORE_XERROR_HANDLER();
+@@ -329,7 +329,7 @@
+ false, XlibWrapper.AnyPropertyType);
+
+ try {
+- status = wpg1.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg1.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status == XlibWrapper.Success &&
+ wpg1.getData() != 0 && wpg1.getActualType() == XAtom.XA_ATOM) {
+@@ -348,7 +348,7 @@
+ 0, 1, false, XAtom.XA_WINDOW);
+
+ try {
+- status = wpg2.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg2.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status == XlibWrapper.Success &&
+ wpg2.getData() != 0 &&
+@@ -366,7 +366,7 @@
+ 0, 1, false, XAtom.XA_WINDOW);
+
+ try {
+- status = wpg3.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg3.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
+
+ if (status != XlibWrapper.Success ||
+ wpg3.getData() == 0 ||
+@@ -382,7 +382,7 @@
+ XlibWrapper.AnyPropertyType);
+
+ try {
+- status = wpg4.execute(XToolkit.IgnoreBadWindowHandler);
++ status = wpg4.execute(XErrorHandler.IgnoreBadWindowHandler.getInstance());
More information about the distro-pkg-dev
mailing list