diff --git a/src/native/linux/org_lwjgl_input_Mouse.c b/src/native/linux/org_lwjgl_input_Mouse.c index 8061ac39..96676bcb 100644 --- a/src/native/linux/org_lwjgl_input_Mouse.c +++ b/src/native/linux/org_lwjgl_input_Mouse.c @@ -98,7 +98,7 @@ static void setCursorPos(int x, int y) { accum_dy += dy; last_x = x; last_y = y; - if (pointer_grabbed) { + if (shouldGrab()) { putMouseEventWithCoords(-1, 0, dx, dy, 0); } else { putMouseEventWithCoords(-1, 0, x, y, 0);