diff options
author | Silenio Quarti <silenio> | 2008-09-18 16:40:41 +0000 |
---|---|---|
committer | Silenio Quarti <silenio> | 2008-09-18 16:40:41 +0000 |
commit | fa3ab750b93b8a375166032f5277819eb6b1e4be (patch) | |
tree | ebe2c4643be760902c424d0dcb4f839a195392d8 | |
parent | 1d98892db1bdc589d2e5f0c31aa064188cc956cf (diff) | |
download | eclipse.platform.swt-fa3ab750b93b8a375166032f5277819eb6b1e4be.tar.gz eclipse.platform.swt-fa3ab750b93b8a375166032f5277819eb6b1e4be.tar.xz eclipse.platform.swt-fa3ab750b93b8a375166032f5277819eb6b1e4be.zip |
245667 - Horizontal Sash does not show resize cursor
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DropTarget.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DropTarget.java index 7a6ce9f567..014b4a5dd1 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DropTarget.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DropTarget.java @@ -269,11 +269,15 @@ static DropTarget FindDropTarget(int theWindow, int theDrag) { OS.GetRootControl(theWindow, theRoot); int[] theControl = new int[1]; Rect rect = new Rect(); - OS.GetWindowBounds (theWindow, (short) OS.kWindowContentRgn, rect); + OS.GetWindowBounds (theWindow, (short) OS.kWindowStructureRgn, rect); CGPoint inPoint = new CGPoint(); inPoint.x = mouse.h - rect.left; inPoint.y = mouse.v - rect.top; - OS.HIViewGetSubviewHit(theRoot[0], inPoint, true, theControl); + int[] event = new int[1]; + OS.CreateEvent (0, OS.kEventClassMouse, OS.kEventMouseDown, 0.0, 0, event); + OS.SetEventParameter (event[0], OS.kEventParamWindowMouseLocation, OS.typeHIPoint, CGPoint.sizeof, inPoint); + OS.HIViewGetViewForMouseEvent (theRoot [0], event [0], theControl); + OS.ReleaseEvent(event[0]); if (!OS.IsControlEnabled(theControl[0])) return null; Widget widget = display.findWidget(theControl[0]); if (widget == null) return null; |