diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nativewindow/classes/com/jogamp/nativewindow/awt/AWTWindowClosingProtocol.java | 11 |
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; } |