release mouse grab when destroying the Mouse or Display
This commit is contained in:
parent
93bfa246c6
commit
9929d0fac9
|
@ -363,6 +363,9 @@ final class MacOSXDisplay implements DisplayImplementation {
|
|||
MacOSXNativeMouse.setCursor(0);
|
||||
} catch (LWJGLException e) {};
|
||||
|
||||
// release any mouse grab
|
||||
grabMouse(false);
|
||||
|
||||
if (mouse != null) {
|
||||
mouse.unregister();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue