From 54b8d0d3c8fbe6db4a91d87d3893b39da1f26c33 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 15 Jan 2014 02:43:14 +0100 Subject: [PATCH] Moved to XGrabPointer for cursor hiding. --- src/x11_window.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/x11_window.c b/src/x11_window.c index 7f756950..29658d4e 100644 --- a/src/x11_window.c +++ b/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;