--- a/XWorkstat.st Fri Jun 28 16:11:12 1996 +0200
+++ b/XWorkstat.st Tue Jul 02 14:26:37 1996 +0200
@@ -228,6 +228,14 @@
lastRequestCode = event->request_code;
lastMinorCode = event->minor_code;
lastResource = event->resourceid;
+ if ((event->error_code == BadWindow) && (lastRequestCode == 4) && (lastMinorCode == 0)) {
+ /*
+ * this is a BadWindow error for X_DestroyWindow.
+ * ignore it here, since it results from the GC freeing windows
+ * in non bottom-up window order.
+ */
+ return 0;
+ }
if (@global(ErrorPrinting) == true) {
fprintf(stderr, "XWORKSTAT: x-error cought maj=%d (0x%x) min=%d (0x%x) resource=%x\n",
@@ -8087,6 +8095,6 @@
!XWorkstation class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/Attic/XWorkstat.st,v 1.148 1996-06-21 16:01:07 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/Attic/XWorkstat.st,v 1.149 1996-07-02 12:26:37 cg Exp $'
! !
XWorkstation initialize!
--- a/XWorkstation.st Fri Jun 28 16:11:12 1996 +0200
+++ b/XWorkstation.st Tue Jul 02 14:26:37 1996 +0200
@@ -228,6 +228,14 @@
lastRequestCode = event->request_code;
lastMinorCode = event->minor_code;
lastResource = event->resourceid;
+ if ((event->error_code == BadWindow) && (lastRequestCode == 4) && (lastMinorCode == 0)) {
+ /*
+ * this is a BadWindow error for X_DestroyWindow.
+ * ignore it here, since it results from the GC freeing windows
+ * in non bottom-up window order.
+ */
+ return 0;
+ }
if (@global(ErrorPrinting) == true) {
fprintf(stderr, "XWORKSTAT: x-error cought maj=%d (0x%x) min=%d (0x%x) resource=%x\n",
@@ -8087,6 +8095,6 @@
!XWorkstation class methodsFor:'documentation'!
version
- ^ '$Header: /cvs/stx/stx/libview/XWorkstation.st,v 1.148 1996-06-21 16:01:07 cg Exp $'
+ ^ '$Header: /cvs/stx/stx/libview/XWorkstation.st,v 1.149 1996-07-02 12:26:37 cg Exp $'
! !
XWorkstation initialize!