mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-06 15:04:41 +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
|
|
@ -64,12 +64,12 @@ final class WindowsAWTInput extends AbstractAWTInput {
|
|||
blank_cursor = AWTUtil.createCursor(w, h, 0, 0, 1, BufferUtils.createIntBuffer(w*h), null);
|
||||
}
|
||||
|
||||
public synchronized void destroy() {
|
||||
super.destroy();
|
||||
public synchronized void destroyMouse() {
|
||||
if (cached_mouse != null) {
|
||||
grab(false);
|
||||
cached_mouse.destroy();
|
||||
}
|
||||
super.destroyMouse();
|
||||
}
|
||||
|
||||
public synchronized void processInput(PeerInfo peer_info) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue