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 {
|
public LinuxMouse(long display, long window) throws LWJGLException {
|
||||||
this.display = display;
|
this.display = display;
|
||||||
this.window = window;
|
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();
|
reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue