summaryrefslogtreecommitdiffstats
path: root/src/test/jogamp/newt/WindowImplAccess.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-02-28 19:49:12 +0100
committerSven Gothel <[email protected]>2011-02-28 19:49:12 +0100
commita65516db85582ac3391b4a3d978ac07b9e1e6951 (patch)
tree0fb4669f50ad1533c264ea4e13fd52c2b3284205 /src/test/jogamp/newt/WindowImplAccess.java
parent5681c25cfd4c7abce7d653910c9aa7a4e989057e (diff)
unit tests: Gears, TestGearsNEWT, WindowImplAccess
Gears (add cursor rotation) TestGearsNEWT (add decoraction toggle 'd') WindowImplAccess NEWT Closing tests .. programmatical close on EDT, which simulates 1:1 native closing operation.
Diffstat (limited to 'src/test/jogamp/newt/WindowImplAccess.java')
-rw-r--r--src/test/jogamp/newt/WindowImplAccess.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/jogamp/newt/WindowImplAccess.java b/src/test/jogamp/newt/WindowImplAccess.java
index 848e58227..76d0dc050 100644
--- a/src/test/jogamp/newt/WindowImplAccess.java
+++ b/src/test/jogamp/newt/WindowImplAccess.java
@@ -45,7 +45,12 @@ public class WindowImplAccess {
} else {
throw new RuntimeException("Given Window not a GLWindow, not WindowImpl, but "+win.getClass());
}
- winImpl.windowDestroyNotify();
+ final WindowImpl winImplF = winImpl;
+ winImplF.runOnEDTIfAvail(true, new Runnable() {
+ public void run() {
+ winImplF.windowDestroyNotify();
+ }
+ });
}
}