Enabled awt hack on Mac OS X

This commit is contained in:
Elias Naur 2003-09-17 10:48:00 +00:00
parent b28860eb71
commit 482179bba1

View file

@ -28,6 +28,15 @@ public final class Window {
static {
System.loadLibrary(Sys.getLibraryName());
/*
* HACK: This is nescessary to establish the Mac OS X dock icon and
* system menu. Without them, windows will misbehave.
*
* I'm accepting this hack on the assumption that awt is always present
* on an Mac OS X JVM.
*/
if (Display.getPlatform() == Display.PLATFORM_AGL)
java.awt.Toolkit.getDefaultToolkit();
}
/** Whether the window is currently created, ie. has a native peer */