Removed broken initial cursor pos kluges.

This commit is contained in:
Camilla Berglund
2013-05-26 17:19:13 +02:00
parent b4e0ee418e
commit ffc55c3509
3 changed files with 0 additions and 31 deletions
-20
View File
@@ -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;
}