1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 12:18:51 -05:00

Documented X11 cursor positioning caveat.

Closes #129.
This commit is contained in:
Camilla Berglund 2014-08-31 13:10:06 +02:00
parent b1fd3c00d0
commit 2eb5ed33be

View File

@ -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