changeset 6532:74b46ab976e2

Fix for RT-36308 [IMX] Mouse sometimes jumps to edge of screen on first mouse move. Reviewed by dblaukopf. Tested with HelloCursors.
author Lisa.Selle@oracle.com
date Fri, 21 Mar 2014 10:56:14 -0400
parents e07207914384
children 37b60b405b4b
files modules/graphics/src/main/native-glass/lens/input/udev/udevInput.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/native-glass/lens/input/udev/udevInput.c	Fri Mar 21 14:11:00 2014 +0400
+++ b/modules/graphics/src/main/native-glass/lens/input/udev/udevInput.c	Fri Mar 21 10:56:14 2014 -0400
@@ -468,8 +468,8 @@
         GLASS_LOG_SEVERE("Could not find %s", className);
     }
 
-    mousePosX = screenWidth / 2;
-    mousePosY = screenHeight / 2;
+    mousePosX = newMousePosX = screenWidth / 2;
+    mousePosY = newMousePosY = screenHeight / 2;
     lens_wm_setPointerPosition(mousePosX, mousePosY);
 
     glass_application_request_native_event_loop(env, &lens_input_eventLoop, NULL);