Linux: Added locking to LinuxMouse

This commit is contained in:
Elias Naur 2006-10-24 11:17:44 +00:00
parent 2de75e4fd9
commit 1802fa2d9d
1 changed files with 6 additions and 1 deletions

View File

@ -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();
}