diff options
author | Kenneth Russel <[email protected]> | 2009-06-15 21:46:28 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2009-06-15 21:46:28 +0000 |
commit | 6f35a6b5d5edf1294c535b912b1a331b2df2487a (patch) | |
tree | ef07c91d3f84bf0d3a6c77566e9b756fccc69c4d | |
parent | 3fe015eb484c1ff9bed8866709f9fe9bbe69115b (diff) |
Moved base initialization of Mac port of Newt back into staticJOGL_2_SANDBOX
initializer of MacWindow to address bootstrapping problems with
JavaFX-based demos in multiple workspaces. It appears that making this
lazier was allowing AWT classes to be touched before Newt was
initialized, leading to problems.
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JOGL_2_SANDBOX@1957 232f8b59-042b-4e1e-8c03-345bb8c30851
-rwxr-xr-x | src/newt/classes/com/sun/javafx/newt/macosx/MacWindow.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/newt/classes/com/sun/javafx/newt/macosx/MacWindow.java b/src/newt/classes/com/sun/javafx/newt/macosx/MacWindow.java index fe0fc76c4..2c1ca7c89 100755 --- a/src/newt/classes/com/sun/javafx/newt/macosx/MacWindow.java +++ b/src/newt/classes/com/sun/javafx/newt/macosx/MacWindow.java @@ -136,6 +136,10 @@ public class MacWindow extends Window { // non fullscreen dimensions .. private int nfs_width, nfs_height, nfs_x, nfs_y; + static { + initSingleton(); + } + private static volatile boolean isInit = false; public static synchronized void initSingleton() { @@ -151,7 +155,6 @@ public class MacWindow extends Window { } public MacWindow() { - initSingleton(); } protected void createNative(Capabilities caps) { |