mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-22 15:45:39 +01:00
Enabled awt hack on Mac OS X
This commit is contained in:
parent
b28860eb71
commit
482179bba1
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue