mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 22:45:50 +00:00
Make sure that Mouse.destroy ungrabs the cursor
This commit is contained in:
parent
3fc91a641c
commit
d2de70f2d9
8 changed files with 30 additions and 15 deletions
|
|
@ -60,4 +60,10 @@ final class MacOSXAWTInput extends AbstractAWTInput {
|
|||
((MacOSXMouseEventQueue)getMouseEventQueue()).warpCursor();
|
||||
had_focus = has_focus;
|
||||
}
|
||||
|
||||
public synchronized void destroyMouse() {
|
||||
if (getMouseEventQueue() != null)
|
||||
getMouseEventQueue().setGrabbed(false);
|
||||
super.destroyMouse();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue