release mouse grab when destroying the Mouse or Display

This commit is contained in:
kappaOne 2013-02-10 20:32:07 +00:00
parent 93bfa246c6
commit 9929d0fac9
1 changed files with 3 additions and 0 deletions

View File

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