summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Kovatch <skovatch>2011-01-18 23:37:42 +0000
committerScott Kovatch <skovatch>2011-01-18 23:37:42 +0000
commit656325b1c78c6db8cea09066b057dd4cf6f29f9e (patch)
treef48039b587f116138aad594206bf0b16287045c9
parentf8ef3cf7f50531eb98cb5b6c6b6b74b2ed865cbd (diff)
downloadeclipse.platform.swt-656325b1c78c6db8cea09066b057dd4cf6f29f9e.tar.gz
eclipse.platform.swt-656325b1c78c6db8cea09066b057dd4cf6f29f9e.tar.xz
eclipse.platform.swt-656325b1c78c6db8cea09066b057dd4cf6f29f9e.zip
324662 - force a mouse move to update the cursor.
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java
index 171cffc105..d0be05f1b2 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Link.java
@@ -128,6 +128,15 @@ boolean textView_clickOnLink_atIndex(int /*long*/ id, int /*long*/ sel, int /*lo
return true;
}
+boolean sendMouseEvent (NSEvent nsEvent, int type, boolean send) {
+ if (type == SWT.MouseMove) {
+ if (view.window().firstResponder().id != view.id) {
+ mouseMoved(view.id, OS.sel_mouseMoved_, nsEvent.id);
+ }
+ }
+ return super.sendMouseEvent(nsEvent, type, send);
+}
+
public Point computeSize (int wHint, int hHint, boolean changed) {
checkWidget ();
if (wHint != SWT.DEFAULT && wHint < 0) wHint = 0;