From a343e9a4756382b5f95141a7072ba09be8104e2e Mon Sep 17 00:00:00 2001 From: Aleksey Rybalkin Date: Fri, 23 Jan 2015 20:38:12 +0300 Subject: [PATCH] Added workaround for cursor hiding on some WMs. Closes #431. Fixes #309. --- README.md | 2 ++ src/x11_window.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 20a909e7..076bd0e8 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,7 @@ GLFW bundles a number of dependencies in the `deps/` directory. - [X11] Made XInput2 optional at compile-time - [X11] Made Xxf86vm optional at compile-time - [X11] Bugfix: `glfwTerminate` could close an unrelated file descriptor + - [X11] Bugfix: Some WMs did not respect cursor redefinition ## Contact @@ -161,6 +162,7 @@ skills. - Pieroman - Jorge Rodriguez - Ed Ropple + - Aleksey Rybalkin - Riku Salminen - Brandon Schaefer - Sebastian Schuberth diff --git a/src/x11_window.c b/src/x11_window.c index 359c7d45..2d1677ac 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -1058,6 +1058,9 @@ static void processEvent(XEvent *event) case EnterNotify: { + if (window->cursorMode == GLFW_CURSOR_HIDDEN) + hideCursor(window); + _glfwInputCursorEnter(window, GL_TRUE); break; }