Added workaround for cursor hiding on some WMs.

Closes #431.
Fixes #309.
This commit is contained in:
Aleksey Rybalkin
2015-01-23 20:38:12 +03:00
committed by Camilla Berglund
parent dc4f0f6c91
commit a343e9a475
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -1058,6 +1058,9 @@ static void processEvent(XEvent *event)
case EnterNotify:
{
if (window->cursorMode == GLFW_CURSOR_HIDDEN)
hideCursor(window);
_glfwInputCursorEnter(window, GL_TRUE);
break;
}