summaryrefslogtreecommitdiffstats
path: root/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java
diff options
context:
space:
mode:
authorSteve Northover <steve>2008-07-29 14:46:31 +0000
committerSteve Northover <steve>2008-07-29 14:46:31 +0000
commit5664dff5df1cf213c13e9dc5e53b36c9f0b4d6b8 (patch)
treea4b99daa7f3b95f95766d87b881d44ea7a6d9e99 /bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java
parentbf9516f967d975ab6c5218f1dce737c9d000ee3b (diff)
downloadeclipse.platform.swt-5664dff5df1cf213c13e9dc5e53b36c9f0b4d6b8.tar.gz
eclipse.platform.swt-5664dff5df1cf213c13e9dc5e53b36c9f0b4d6b8.tar.xz
eclipse.platform.swt-5664dff5df1cf213c13e9dc5e53b36c9f0b4d6b8.zip
241671 - Mouse cursor disappears in editor and gets progressively slower coming back
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java
index 720a51d2cc..3f19be54de 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/carbon/org/eclipse/swt/widgets/Canvas.java
@@ -232,7 +232,7 @@ int kEventTextInputUnicodeForKeyEvent (int nextHandler, int theEvent, int userDa
int result = super.kEventTextInputUnicodeForKeyEvent(nextHandler, theEvent, userData);
if (result != OS.noErr) {
if (caret != null) {
- OS.CGDisplayHideCursor (OS.CGMainDisplayID ());
+ if (OS.CGCursorIsVisible ()) OS.CGDisplayHideCursor (OS.CGMainDisplayID ());
}
}
return result;