2002/08/18 05:27:01
[org.ibex.core.git] / src / org / xwt / SpecialBoxProperty.java
index 6302f49..f9880bf 100644 (file)
@@ -573,7 +573,7 @@ class SpecialBoxProperty {
 
         specialBoxProperties.put("Close", new SpecialBoxProperty() {
                 public void put(Box b, Object value) {
-                    if (b.getParent() == null && b.surface != null) b.surface.dispose();
+                    if (b.getParent() == null && b.surface != null) b.surface.dispose(true);
                 }
             });
 
@@ -713,7 +713,7 @@ class SpecialBoxProperty {
                     if (Log.on) Log.log(this, "template " + templatename + " not found at " +
                                         Context.enter().interpreterSourceFile + ":" + Context.enter().interpreterLine);
                 } else {
-                    if (!ThreadMessage.suspendThread()) try {
+                    if (ThreadMessage.suspendThread()) try {
                         Function callback = args.length < 2 ? null : (Function)args[1];
                         t.apply(b, null, null, callback, 0, t.numUnits());
                     } finally {