summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-02-28 18:38:45 +0100
committerSven Gothel <[email protected]>2013-02-28 18:38:45 +0100
commit7891d2b8f73afb3a71aea237bc5891f05d1d538f (patch)
tree65368981499e1db0d2077009c68b149943b50a3a /src
parentb85903ac92be7884e99eb7b85884033d7ea42337 (diff)
Fix AWT EDT Deadlock in AWTWindowClosingProtocol, regression of commit 808a9a27a8c1c9e0a6701a8dd81d51f8daa8129d
Diffstat (limited to 'src')
-rw-r--r--src/nativewindow/classes/com/jogamp/nativewindow/awt/AWTWindowClosingProtocol.java11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/nativewindow/classes/com/jogamp/nativewindow/awt/AWTWindowClosingProtocol.java b/src/nativewindow/classes/com/jogamp/nativewindow/awt/AWTWindowClosingProtocol.java
index e3f85b948..e499ff705 100644
--- a/src/nativewindow/classes/com/jogamp/nativewindow/awt/AWTWindowClosingProtocol.java
+++ b/src/nativewindow/classes/com/jogamp/nativewindow/awt/AWTWindowClosingProtocol.java
@@ -36,7 +36,6 @@ import java.awt.event.WindowListener;
import javax.media.nativewindow.WindowClosingProtocol;
-import jogamp.common.awt.AWTEDTExecutor;
import jogamp.nativewindow.awt.AWTMisc;
public class AWTWindowClosingProtocol implements WindowClosingProtocol {
@@ -92,10 +91,7 @@ public class AWTWindowClosingProtocol implements WindowClosingProtocol {
}
final Window w = AWTMisc.getWindow(comp);
if(null!=w) {
- AWTEDTExecutor.singleton.invoke(true, new Runnable() {
- public void run() {
- w.addWindowListener(windowClosingAdapter);
- } } );
+ w.addWindowListener(windowClosingAdapter);
closingListenerSet = true;
return true;
}
@@ -108,10 +104,7 @@ public class AWTWindowClosingProtocol implements WindowClosingProtocol {
if(closingListenerSet) {
final Window w = AWTMisc.getWindow(comp);
if(null!=w) {
- AWTEDTExecutor.singleton.invoke(true, new Runnable() {
- public void run() {
- w.removeWindowListener(windowClosingAdapter);
- } } );
+ w.removeWindowListener(windowClosingAdapter);
closingListenerSet = false;
return true;
}