Windows: Make sure that the cursor position doesn't jump when switching grab mode

This commit is contained in:
Elias Naur 2006-11-24 15:21:02 +00:00
parent 92b3a7d282
commit c6ba2c66b1
1 changed files with 1 additions and 1 deletions

View File

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