mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 06:25:46 +00:00
Windows: Make sure that the cursor position doesn't jump when switching grab mode
This commit is contained in:
parent
92b3a7d282
commit
c6ba2c66b1
1 changed files with 1 additions and 1 deletions
|
|
@ -142,12 +142,12 @@ final class WindowsAWTInput extends AbstractAWTInput {
|
|||
|
||||
public synchronized void grabMouse(boolean grab) {
|
||||
if (grab != isGrabbed()) {
|
||||
super.grabMouse(grab);
|
||||
/* Only ungrab since grabbing can only occur in processInput
|
||||
* when the hwnd is guaranteed valid
|
||||
*/
|
||||
if (cached_mouse != null && !grab)
|
||||
grab(grab);
|
||||
super.grabMouse(grab);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue