From 187e0b768e28c7cb712a00bcd6f103d3a7bd64c5 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sat, 24 Sep 2011 03:27:47 +0200 Subject: OSX: Sync MainThread w/ DefaultEDTUtil and proper deledation AWT EDT, MacWindow: create/visible at native creation --- src/newt/classes/jogamp/newt/driver/macosx/MacWindow.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/newt/classes/jogamp/newt/driver/macosx/MacWindow.java') 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() { -- cgit v1.2.3