mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 22:45:50 +00:00
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
1 changed files with 8 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue