mirror of
https://github.com/glfw/glfw.git
synced 2026-09-17 22:32:50 +00:00
Removed broken initial cursor pos kluges.
This commit is contained in:
@@ -890,26 +890,6 @@ int _glfwPlatformCreateWindow(_GLFWwindow* window,
|
||||
enterFullscreenMode(window);
|
||||
}
|
||||
|
||||
// Retrieve and set initial cursor position
|
||||
{
|
||||
Window cursorWindow, cursorRoot;
|
||||
int windowX, windowY, rootX, rootY;
|
||||
unsigned int mask;
|
||||
|
||||
XQueryPointer(_glfw.x11.display,
|
||||
window->x11.handle,
|
||||
&cursorRoot,
|
||||
&cursorWindow,
|
||||
&rootX, &rootY,
|
||||
&windowX, &windowY,
|
||||
&mask);
|
||||
|
||||
// TODO: Probably check for some corner cases here.
|
||||
|
||||
window->cursorPosX = windowX;
|
||||
window->cursorPosY = windowY;
|
||||
}
|
||||
|
||||
return GL_TRUE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user