mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8130266: Change the mechanism by which JDK loads the platform-specific GraphicsEnvironment class
Reviewed-by: serb, bchristi
This commit is contained in:
parent
1aea77ae37
commit
d43616c60a
13 changed files with 238 additions and 76 deletions
|
@ -396,14 +396,12 @@ GetJavaProperties(JNIEnv *env)
|
|||
|
||||
/* Java 2D/AWT properties */
|
||||
#ifdef MACOSX
|
||||
// Always the same GraphicsEnvironment and Toolkit on Mac OS X
|
||||
sprops.graphics_env = "sun.awt.CGraphicsEnvironment";
|
||||
// Always the same Toolkit on Mac OS X
|
||||
sprops.awt_toolkit = "sun.lwawt.macosx.LWCToolkit";
|
||||
|
||||
// check if we're in a GUI login session and set java.awt.headless=true if not
|
||||
sprops.awt_headless = isInAquaSession() ? NULL : "true";
|
||||
#else
|
||||
sprops.graphics_env = "sun.awt.X11GraphicsEnvironment";
|
||||
sprops.awt_toolkit = "sun.awt.X11.XToolkit";
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue