mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-07 07:24:20 +00:00
Mac OS X: Fixed a hang on Display.destroy in applets
This commit is contained in:
parent
0f6d7a82db
commit
19a3f6e359
2 changed files with 2 additions and 2 deletions
|
|
@ -327,7 +327,7 @@ final class MacOSXDisplay implements DisplayImplementation {
|
|||
|
||||
public void destroyMouse() {
|
||||
if (mouse_queue != null) {
|
||||
mouse_queue.setGrabbed(false);
|
||||
MacOSXMouseEventQueue.nGrabMouse(false);
|
||||
mouse_queue.unregister();
|
||||
}
|
||||
this.mouse_queue = null;
|
||||
|
|
|
|||
|
|
@ -107,5 +107,5 @@ final class MacOSXMouseEventQueue extends MouseEventQueue {
|
|||
|
||||
private static native void nWarpCursor(int x, int y);
|
||||
|
||||
private static native void nGrabMouse(boolean grab);
|
||||
static native void nGrabMouse(boolean grab);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue