Re-enabled cursor re-centering.

master
Camilla Berglund ago%!(EXTRA string=13 years)
parent 208b7f0bb8
commit f66e6a6916
  1. 6
      src/x11_window.c

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

Loading…
Cancel
Save