changeset 5623:dba72896ae67

RT-31816 Lens: Changing cursor to None to hide mouse over imageview/stack pane does not work Reviewed-by: Lisa Selle
author Daniel Blaukopf <daniel.blaukopf@oracle.com>
date Mon, 04 Nov 2013 15:44:44 +0200
parents bf5672724141
children 76c7f1bbfbd3
files modules/graphics/src/main/java/com/sun/glass/ui/lens/LensCursor.java
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/lens/LensCursor.java	Mon Nov 04 11:25:42 2013 +0200
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/lens/LensCursor.java	Mon Nov 04 15:44:44 2013 +0200
@@ -42,7 +42,7 @@
     protected LensCursor(int type) {
         super(type);
 
-        if (type != CURSOR_NONE && type != CURSOR_DISAPPEAR) {
+        if (type != CURSOR_NONE) {
             ptr = _createNativeCursorByType(type);
         }
     }
@@ -97,10 +97,12 @@
         }
 
         int type = getType();
-        if (type == CURSOR_DISAPPEAR) {
-            // CURSOR_DISAPPEAR is mapped to setVisible(false) and will be registered 
+        if (type == CURSOR_NONE) {
+            // CURSOR_NONE is mapped to setVisible(false) and will be registered
             // in LensApplication as a user preference to not show the cursor.
             ((LensApplication)Application.GetApplication()).staticCursor_setVisible(false);
+        } else {
+            ((LensApplication)Application.GetApplication()).staticCursor_setVisible(true);
         }
     }