From 8605c6f33dec1ebfc4da2707a4ff0f02b976af09 Mon Sep 17 00:00:00 2001 From: mfranz Date: Sun, 11 Jan 2009 10:37:25 +0000 Subject: [PATCH] only unhide the cursor if it was actually hidden --- src/Input/input.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Input/input.cxx b/src/Input/input.cxx index 912d8fc61..695a42610 100644 --- a/src/Input/input.cxx +++ b/src/Input/input.cxx @@ -901,7 +901,8 @@ FGInput::_update_mouse ( double dt ) if ( fgGetBool( "/sim/mouse/hide-cursor", true ) ) { if ( m.x != m.save_x || m.y != m.save_y ) { m.timeout = fgGetDouble( "/sim/mouse/cursor-timeout-sec", 10.0 ); - fgSetMouseCursor(m.modes[mode].cursor); + if (fgGetMouseCursor() == MOUSE_CURSOR_NONE) + fgSetMouseCursor(m.modes[mode].cursor); } else { m.timeout -= dt; if ( m.timeout <= 0.0 ) {