Mouse.cpp fix

This commit is contained in:
Elias Naur 2002-11-28 09:29:40 +00:00
parent 1959a2e0ff
commit 383ceb7c25
1 changed files with 4 additions and 0 deletions

View File

@ -182,6 +182,10 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_input_Mouse_nCreate
#endif
return JNI_FALSE;
}
XWarpPointer(disp, None, win, 0, 0, 0, 0, 0, 0);
XEvent event;
while (XCheckMaskEvent(disp, ButtonPressMask | ButtonReleaseMask | PointerMotionMask, &event))
; // delete events that are pending
return JNI_TRUE;
}