Linux: Fixed resetDisplayMode in case XRandr is used and the first reported mode is not the initial mode
This commit is contained in:
parent
3b8b751935
commit
bf84c8b361
|
@ -389,11 +389,16 @@ final class LinuxDisplay implements DisplayImplementation {
|
|||
}
|
||||
|
||||
private static DisplayMode getCurrentXRandrMode() throws LWJGLException {
|
||||
incDisplay();
|
||||
lockAWT();
|
||||
try {
|
||||
return nGetCurrentXRandrMode();
|
||||
incDisplay();
|
||||
try {
|
||||
return nGetCurrentXRandrMode();
|
||||
} finally {
|
||||
decDisplay();
|
||||
}
|
||||
} finally {
|
||||
decDisplay();
|
||||
unlockAWT();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue