mirror of
https://github.com/glfw/glfw.git
synced 2024-11-14 02:31:46 +00:00
Added workaround for cursor hiding on some WMs.
Closes #431. Fixes #309.
This commit is contained in:
parent
dc4f0f6c91
commit
a343e9a475
@ -69,6 +69,7 @@ GLFW bundles a number of dependencies in the `deps/` directory.
|
|||||||
- [X11] Made XInput2 optional at compile-time
|
- [X11] Made XInput2 optional at compile-time
|
||||||
- [X11] Made Xxf86vm optional at compile-time
|
- [X11] Made Xxf86vm optional at compile-time
|
||||||
- [X11] Bugfix: `glfwTerminate` could close an unrelated file descriptor
|
- [X11] Bugfix: `glfwTerminate` could close an unrelated file descriptor
|
||||||
|
- [X11] Bugfix: Some WMs did not respect cursor redefinition
|
||||||
|
|
||||||
|
|
||||||
## Contact
|
## Contact
|
||||||
@ -161,6 +162,7 @@ skills.
|
|||||||
- Pieroman
|
- Pieroman
|
||||||
- Jorge Rodriguez
|
- Jorge Rodriguez
|
||||||
- Ed Ropple
|
- Ed Ropple
|
||||||
|
- Aleksey Rybalkin
|
||||||
- Riku Salminen
|
- Riku Salminen
|
||||||
- Brandon Schaefer
|
- Brandon Schaefer
|
||||||
- Sebastian Schuberth
|
- Sebastian Schuberth
|
||||||
|
@ -1058,6 +1058,9 @@ static void processEvent(XEvent *event)
|
|||||||
|
|
||||||
case EnterNotify:
|
case EnterNotify:
|
||||||
{
|
{
|
||||||
|
if (window->cursorMode == GLFW_CURSOR_HIDDEN)
|
||||||
|
hideCursor(window);
|
||||||
|
|
||||||
_glfwInputCursorEnter(window, GL_TRUE);
|
_glfwInputCursorEnter(window, GL_TRUE);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user