summaryrefslogtreecommitdiffstats
path: root/src/demos/newt
diff options
context:
space:
mode:
Diffstat (limited to 'src/demos/newt')
-rw-r--r--src/demos/newt/NEWTTest1.java4
-rw-r--r--src/demos/newt/TaskManagerTest1.java4
-rw-r--r--src/demos/newt/TaskManagerTest2.java2
-rw-r--r--src/demos/newt/util/TaskToolWM.java2
4 files changed, 6 insertions, 6 deletions
diff --git a/src/demos/newt/NEWTTest1.java b/src/demos/newt/NEWTTest1.java
index bcfff5a..23bc914 100644
--- a/src/demos/newt/NEWTTest1.java
+++ b/src/demos/newt/NEWTTest1.java
@@ -92,7 +92,7 @@ public class NEWTTest1 implements WindowListener, KeyListener, MouseListener
Screen screen = NewtFactory.createScreen(display, 0);
Window window = NewtFactory.createWindow(screen, caps);
window.setTitle("GlassPrism");
- window.setHandleDestroyNotify(false);
+ // window.setHandleDestroyNotify(false);
window.setUndecorated(false);
window.setSize(256, 256);
window.addKeyListener(this);
@@ -105,7 +105,7 @@ public class NEWTTest1 implements WindowListener, KeyListener, MouseListener
while (running)
{
- display.pumpMessages();
+ display.dispatchMessages();
window.lockSurface();
try
diff --git a/src/demos/newt/TaskManagerTest1.java b/src/demos/newt/TaskManagerTest1.java
index 6a8f8e5..ff8ae00 100644
--- a/src/demos/newt/TaskManagerTest1.java
+++ b/src/demos/newt/TaskManagerTest1.java
@@ -97,7 +97,7 @@ public class TaskManagerTest1 implements WindowListener, KeyListener, MouseList
// do it ..
if(null!=display) {
- display.pumpMessages();
+ display.dispatchMessages();
}
} catch (Throwable t) {
// handle errors ..
@@ -145,7 +145,7 @@ public class TaskManagerTest1 implements WindowListener, KeyListener, MouseList
Screen screen = NewtFactory.createScreen(display, 0);
window = NewtFactory.createWindow(screen, caps);
window.setTitle("GlassPrism");
- window.setHandleDestroyNotify(false);
+ // 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 35c707c..03fff2d 100644
--- a/src/demos/newt/TaskManagerTest2.java
+++ b/src/demos/newt/TaskManagerTest2.java
@@ -115,7 +115,7 @@ public class TaskManagerTest2 implements WindowListener, KeyListener, MouseList
Screen screen = NewtFactory.createScreen(display, 0);
Window window = NewtFactory.createWindow(screen, caps);
window.setTitle("GlassPrism");
- window.setHandleDestroyNotify(false);
+ // window.setHandleDestroyNotify(false);
window.setUndecorated(false);
window.setSize(256, 256);
window.addKeyListener(this);
diff --git a/src/demos/newt/util/TaskToolWM.java b/src/demos/newt/util/TaskToolWM.java
index 6ecdaff..4b56bf8 100644
--- a/src/demos/newt/util/TaskToolWM.java
+++ b/src/demos/newt/util/TaskToolWM.java
@@ -84,7 +84,7 @@ public class TaskToolWM {
// do it ..
if(null!=display) {
- display.pumpMessages();
+ display.dispatchMessages();
}
} catch (Throwable t) {
// handle errors ..