From 34aeff1757eec6d205a68fa0964052588b57f7fd Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 8 Jun 2003 14:30:53 +0000 Subject: [PATCH] Try to return a better minimum cursor size --- src/native/linux/org_lwjgl_input_Mouse.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/native/linux/org_lwjgl_input_Mouse.cpp b/src/native/linux/org_lwjgl_input_Mouse.cpp index 3725f758..fcb75504 100644 --- a/src/native/linux/org_lwjgl_input_Mouse.cpp +++ b/src/native/linux/org_lwjgl_input_Mouse.cpp @@ -226,7 +226,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_input_Mouse_nSetNativeCursor JNIEXPORT jint JNICALL Java_org_lwjgl_input_Mouse_nGetMinCursorSize (JNIEnv *env, jclass clazz) { - return 1; + unsigned int width_return = 0; + unsigned int height_return = 0; + XQueryBestCursor(getCurrentDisplay(), getCurrentWindow(), 1, 1, &width_return, &height_return); + return width_return > height_return ? height_return : width_return; } /*