From 7e470518ba909381a9cce65011e1d308e998566a Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Mon, 30 Jan 2012 22:32:14 +0100 Subject: [PATCH] Formatting. --- src/x11_window.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/x11_window.c b/src/x11_window.c index cbd844d3..ccf049f9 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -1190,10 +1190,10 @@ static void processSingleEvent(void) fprintf(stderr, "Cannot find GLFW window structure for EnterNotify event\n"); return; } - if(window->cursorMode == GLFW_CURSOR_HIDDEN) - { + + if (window->cursorMode == GLFW_CURSOR_HIDDEN) hideMouseCursor(window); - } + _glfwInputCursorEnter(window); break; } @@ -1207,7 +1207,9 @@ static void processSingleEvent(void) fprintf(stderr, "Cannot find GLFW window structure for LeaveNotify event\n"); return; } + showMouseCursor(window); + _glfwInputCursorLeave(window); break; }