mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-08 16:54:24 +01:00
Linux: Added locking to LinuxMouse
This commit is contained in:
parent
2de75e4fd9
commit
1802fa2d9d
|
|
@ -80,7 +80,12 @@ final class LinuxMouse {
|
|||
public LinuxMouse(long display, long window) throws LWJGLException {
|
||||
this.display = display;
|
||||
this.window = window;
|
||||
this.warp_atom = LinuxDisplay.nInternAtom(display, "_LWJGL", false);
|
||||
LinuxDisplay.lockAWT();
|
||||
try {
|
||||
this.warp_atom = LinuxDisplay.nInternAtom(display, "_LWJGL", false);
|
||||
} finally {
|
||||
LinuxDisplay.unlockAWT();
|
||||
}
|
||||
reset();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue