diff options
Diffstat (limited to 'src/newt')
-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) { |