From 4bb9fed247d8151b317c32dd1f8d7bde03a1bcb6 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 23 Sep 2010 18:58:03 +0200 Subject: Sync with JOGL: 1c02f0eeb539ff5de7259b822893ab63a9cc3ab0 --- src/demos/newt/NEWTTest1.java | 4 ++-- src/demos/newt/TaskManagerTest1.java | 4 ++-- src/demos/newt/TaskManagerTest2.java | 2 +- src/demos/newt/util/TaskToolWM.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/demos/newt') 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 .. -- cgit v1.2.3