mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
Enabled awt hack on Mac OS X
This commit is contained in:
parent
b28860eb71
commit
482179bba1
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue