Fix regression introduced by r41892: DragStart() was called at the wrong time,

leading the drag message to contain nothing more than an empty B_MOUSE_IDLE
message. This broke several other cases of drag and drop which relied on it
containing the dragged refs. Fixes #7705.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42221 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2011-06-17 22:56:11 +00:00
parent f5971e6742
commit 5e90adf5d7
1 changed files with 3 additions and 1 deletions

View File

@ -6716,6 +6716,9 @@ BPoseView::MouseMoved(BPoint mouseLoc, uint32 moveCode, const BMessage *message)
if (!window)
return;
if (!window->Dragging())
window->DragStart(message);
switch (moveCode) {
case B_INSIDE_VIEW:
case B_ENTERED_VIEW:
@ -6789,7 +6792,6 @@ BPoseView::MouseIdle(const BMessage *message)
return;
if (fDropTarget != NULL) {
window->DragStart(message);
FrameForPose(fDropTarget, true, &fStartFrame);
ShowContextMenu(where);
} else