mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-02-05 23:35:12 +01:00
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 a new issue