Moved to XGrabPointer for cursor hiding.

master
Camilla Berglund ago%!(EXTRA string=12 years)
parent 75f916db44
commit 54b8d0d3c8
  1. 4
      src/x11_window.c

@ -341,14 +341,12 @@ static void hideCursor(_GLFWwindow* window)
//
static void captureCursor(_GLFWwindow* window)
{
hideCursor(window);
if (!window->x11.cursorGrabbed)
{
if (XGrabPointer(_glfw.x11.display, window->x11.handle, True,
ButtonPressMask | ButtonReleaseMask |
PointerMotionMask, GrabModeAsync, GrabModeAsync,
window->x11.handle, None, CurrentTime) ==
window->x11.handle, _glfw.x11.cursor, CurrentTime) ==
GrabSuccess)
{
window->x11.cursorGrabbed = GL_TRUE;

Loading…
Cancel
Save