1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 10:48:51 -05:00

Re-enabled cursor re-centering.

This commit is contained in:
Camilla Berglund 2012-08-12 16:05:43 +02:00
parent 208b7f0bb8
commit f66e6a6916

View File

@ -1151,8 +1151,9 @@ void _glfwPlatformPollEvents(void)
processEvent(&event); processEvent(&event);
} }
#if 0 // Check whether the cursor has moved inside an active window that has
// Did the cursor move in an active window that has captured the cursor // captured the cursor (because then it needs to be re-centered)
_GLFWwindow* window; _GLFWwindow* window;
window = _glfwLibrary.activeWindow; window = _glfwLibrary.activeWindow;
if (window) if (window)
@ -1171,7 +1172,6 @@ void _glfwPlatformPollEvents(void)
XFlush( _glfwLibrary.X11.display ); XFlush( _glfwLibrary.X11.display );
} }
} }
#endif
} }
#include <sys/select.h> #include <sys/select.h>