Windows: Use current Mouse.isGrabbed() when determining grab status

This commit is contained in:
Elias Naur 2008-04-08 11:21:57 +00:00
parent d0736741d9
commit e4d35cdb0d
1 changed files with 2 additions and 1 deletions

View File

@ -47,6 +47,7 @@ import org.lwjgl.LWJGLException;
import org.lwjgl.LWJGLUtil;
import org.lwjgl.BufferUtils;
import org.lwjgl.input.Cursor;
import org.lwjgl.input.Mouse;
final class WindowsDisplay implements DisplayImplementation {
private final static int GAMMA_LENGTH = 256;
@ -613,7 +614,7 @@ final class WindowsDisplay implements DisplayImplementation {
}
private boolean shouldGrab() {
return !isMinimized && isFocused && mouse != null && mouse.isGrabbed();
return !isMinimized && isFocused && Mouse.isGrabbed();
}
private void handleMouseMoved(int x, int y, long millis) {