From 2eb5ed33beb65d45ed30a988d7cd6bad27e44283 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 31 Aug 2014 13:10:06 +0200 Subject: [PATCH] Documented X11 cursor positioning caveat. Closes #129. --- include/GLFW/glfw3.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/GLFW/glfw3.h b/include/GLFW/glfw3.h index 32173e50..62bd6716 100644 --- a/include/GLFW/glfw3.h +++ b/include/GLFW/glfw3.h @@ -2077,6 +2077,10 @@ GLFWAPI void glfwGetCursorPos(GLFWwindow* window, double* xpos, double* ypos); * @param[in] ypos The desired y-coordinate, relative to the top edge of the * client area. * + * @remarks **X11:** Due to the asynchronous nature of a modern X desktop, it + * may take a moment for the window focus event to arrive. This means you will + * not be able to set the cursor position directly after window creation. + * * @note This function may only be called from the main thread. * * @sa glfwGetCursorPos