summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xsrc/demos/GLInfo.java2
-rwxr-xr-xsrc/demos/es1/RedSquare.java2
-rwxr-xr-xsrc/demos/es2/RedSquare.java2
-rw-r--r--src/demos/newt/NEWTTest1.java2
-rw-r--r--src/demos/newt/TaskManagerTest1.java2
-rw-r--r--src/demos/newt/TaskManagerTest2.java2
6 files changed, 6 insertions, 6 deletions
diff --git a/src/demos/GLInfo.java b/src/demos/GLInfo.java
index 0d0c1e2..c968d67 100755
--- a/src/demos/GLInfo.java
+++ b/src/demos/GLInfo.java
@@ -82,7 +82,7 @@ public class GLInfo extends Thread implements GLEventListener {
window.display();
// Shut things down cooperatively
- window.destroy();
+ window.destroy(true);
System.out.println(glp+" GLInfo shut down cleanly.");
} catch (Throwable t) {
t.printStackTrace();
diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index c7ad8bc..3b6168a 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -169,7 +169,7 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
try {
System.out.println("SHUTDOWN "+Thread.currentThread()+" START");
// Shut things down cooperatively
- window.destroy();
+ window.destroy(true);
window = null;
if(null!=nWindow) {
nWindow.destroy(true);
diff --git a/src/demos/es2/RedSquare.java b/src/demos/es2/RedSquare.java
index 12b2a5a..980697d 100755
--- a/src/demos/es2/RedSquare.java
+++ b/src/demos/es2/RedSquare.java
@@ -144,7 +144,7 @@ public class RedSquare extends Thread implements WindowListener, KeyListener, Mo
public void shutdown() {
try {
// Shut things down cooperatively
- window.destroy();
+ window.destroy(true);
window = null;
if(null!=nWindow) {
nWindow.destroy(true);
diff --git a/src/demos/newt/NEWTTest1.java b/src/demos/newt/NEWTTest1.java
index ab8d577..1a2f757 100644
--- a/src/demos/newt/NEWTTest1.java
+++ b/src/demos/newt/NEWTTest1.java
@@ -88,7 +88,7 @@ public class NEWTTest1 implements WindowListener, KeyListener, MouseListener
Screen screen = NewtFactory.createScreen(display, 0);
Window window = NewtFactory.createWindow(screen, caps);
window.setTitle("GlassPrism");
- window.setAutoDrawableClient(true);
+ window.setHandleDestroyNotify(false);
window.setUndecorated(false);
window.setSize(256, 256);
window.addKeyListener(this);
diff --git a/src/demos/newt/TaskManagerTest1.java b/src/demos/newt/TaskManagerTest1.java
index 62f0a89..4fcc6a5 100644
--- a/src/demos/newt/TaskManagerTest1.java
+++ b/src/demos/newt/TaskManagerTest1.java
@@ -142,7 +142,7 @@ public class TaskManagerTest1 implements WindowListener, KeyListener, MouseList
Screen screen = NewtFactory.createScreen(display, 0);
window = NewtFactory.createWindow(screen, caps);
window.setTitle("GlassPrism");
- window.setAutoDrawableClient(true);
+ window.setHandleDestroyNotify(false);
window.setUndecorated(false);
window.setSize(256, 256);
window.addKeyListener(this);
diff --git a/src/demos/newt/TaskManagerTest2.java b/src/demos/newt/TaskManagerTest2.java
index 0b61342..93f61f1 100644
--- a/src/demos/newt/TaskManagerTest2.java
+++ b/src/demos/newt/TaskManagerTest2.java
@@ -112,7 +112,7 @@ public class TaskManagerTest2 implements WindowListener, KeyListener, MouseList
Screen screen = NewtFactory.createScreen(display, 0);
Window window = NewtFactory.createWindow(screen, caps);
window.setTitle("GlassPrism");
- window.setAutoDrawableClient(true);
+ window.setHandleDestroyNotify(false);
window.setUndecorated(false);
window.setSize(256, 256);
window.addKeyListener(this);