summaryrefslogtreecommitdiffstats
path: root/src/newt/classes/jogamp
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2011-09-24 03:27:47 +0200
committerSven Gothel <[email protected]>2011-09-24 03:27:47 +0200
commit187e0b768e28c7cb712a00bcd6f103d3a7bd64c5 (patch)
treeb3f3ba0d157fb5d87877a6be3316742e2e2fb851 /src/newt/classes/jogamp
parentd24147ddf6b43246d4156203fe43c6ae45df55a0 (diff)
OSX: Sync MainThread w/ DefaultEDTUtil and proper deledation AWT EDT, MacWindow: create/visible at native creation
Diffstat (limited to 'src/newt/classes/jogamp')
-rw-r--r--src/newt/classes/jogamp/newt/driver/macosx/MacWindow.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/macosx/MacWindow.java b/src/newt/classes/jogamp/newt/driver/macosx/MacWindow.java
index 433fc5e2c..8706983cc 100644
--- a/src/newt/classes/jogamp/newt/driver/macosx/MacWindow.java
+++ b/src/newt/classes/jogamp/newt/driver/macosx/MacWindow.java
@@ -35,6 +35,7 @@
package jogamp.newt.driver.macosx;
import javax.media.nativewindow.*;
+
import com.jogamp.common.util.locks.RecursiveLock;
import com.jogamp.newt.event.*;
@@ -145,6 +146,10 @@ public class MacWindow extends WindowImpl {
if (config == null) {
throw new NativeWindowException("Error choosing GraphicsConfiguration creating window: "+this);
}
+ reconfigureWindowImpl(x, y, width, height, getReconfigureFlags(FLAG_CHANGE_VISIBILITY, true));
+ if (0 == getWindowHandle()) {
+ throw new NativeWindowException("Error creating window");
+ }
}
protected void closeNativeImpl() {