1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-10-08 15:17:25 -04:00

Documented hidden cursor workaround.

This commit is contained in:
Camilla Berglund 2015-02-22 14:59:55 +01:00
parent a343e9a475
commit cf7dc1d737

View File

@ -1058,6 +1058,8 @@ static void processEvent(XEvent *event)
case EnterNotify: case EnterNotify:
{ {
// HACK: This is a workaround for WMs (KWM, Fluxbox) that otherwise
// ignore the defined cursor for hidden cursor mode
if (window->cursorMode == GLFW_CURSOR_HIDDEN) if (window->cursorMode == GLFW_CURSOR_HIDDEN)
hideCursor(window); hideCursor(window);