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,12 +389,17 @@ final class LinuxDisplay implements DisplayImplementation {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static DisplayMode getCurrentXRandrMode() throws LWJGLException {
|
private static DisplayMode getCurrentXRandrMode() throws LWJGLException {
|
||||||
|
lockAWT();
|
||||||
|
try {
|
||||||
incDisplay();
|
incDisplay();
|
||||||
try {
|
try {
|
||||||
return nGetCurrentXRandrMode();
|
return nGetCurrentXRandrMode();
|
||||||
} finally {
|
} finally {
|
||||||
decDisplay();
|
decDisplay();
|
||||||
}
|
}
|
||||||
|
} finally {
|
||||||
|
unlockAWT();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Assumes extension == XRANDR */
|
/** Assumes extension == XRANDR */
|
||||||
|
|
Loading…
Reference in New Issue