From f8dc7fa67bc76a1fd5bf2128bf5619179a6ab18c Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sat, 11 Dec 2004 11:11:23 +0000 Subject: [PATCH] Linux: Fix more mouse handling bugs --- src/native/linux/org_lwjgl_input_Mouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/native/linux/org_lwjgl_input_Mouse.c b/src/native/linux/org_lwjgl_input_Mouse.c index 96676bcb..1c876f54 100644 --- a/src/native/linux/org_lwjgl_input_Mouse.c +++ b/src/native/linux/org_lwjgl_input_Mouse.c @@ -80,7 +80,7 @@ static bool putMouseEventWithCoords(jint button, jint state, jint coord1, jint c } static bool putMouseEvent(jint button, jint state, jint dz) { - if (pointer_grabbed) + if (shouldGrab()) return putMouseEventWithCoords(button, state, 0, 0, dz); else return putMouseEventWithCoords(button, state, last_x, last_y, dz); @@ -370,7 +370,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_LinuxDisplay_pollMouse(JNIEnv * env printfDebug("ERROR: Not enough space in coords array: %d < 3\n", coords_length); return; } - if (pointer_grabbed) { + if (shouldGrab()) { coords[0] = accum_dx; coords[1] = accum_dy; } else {