Linux: Fixed privileged property access in LinuxDisplay.java
This commit is contained in:
parent
0f4df46e9b
commit
cfe79394e6
|
@ -139,7 +139,7 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
}
|
||||
|
||||
private static boolean isXrandrSupported() {
|
||||
if (Boolean.getBoolean("LWJGL_DISABLE_XRANDR"))
|
||||
if (Display.getPrivilegedBoolean("LWJGL_DISABLE_XRANDR"))
|
||||
return false;
|
||||
lockAWT();
|
||||
try {
|
||||
|
@ -177,7 +177,7 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
private static native boolean nIsXF86VidModeSupported() throws LWJGLException;
|
||||
|
||||
private static boolean isNetWMFullscreenSupported() throws LWJGLException {
|
||||
if (Boolean.getBoolean("LWJGL_DISABLE_NETWM"))
|
||||
if (Display.getPrivilegedBoolean("LWJGL_DISABLE_NETWM"))
|
||||
return false;
|
||||
lockAWT();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue