aboutsummaryrefslogtreecommitdiffstats
path: root/src/newt/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/newt/classes')
-rwxr-xr-xsrc/newt/classes/com/sun/javafx/newt/macosx/MacWindow.java5
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) {