Ticket #6861: 0001-Move-SetMouseEventMask-into-MouseDown-where-it-shoul.patch

File 0001-Move-SetMouseEventMask-into-MouseDown-where-it-shoul.patch, 1.1 KB (added by jessicah, 12 years ago)
  • src/preferences/filetypes/IconView.cpp

    From b69453399de4a60fd729e76627df36c5d25a4cba Mon Sep 17 00:00:00 2001
    From: Jessica Hamilton <jessica.l.hamilton@gmail.com>
    Date: Thu, 23 Aug 2012 14:02:36 +0000
    Subject: [PATCH] Move SetMouseEventMask() into MouseDown, where it should be.
    
    ---
     src/preferences/filetypes/IconView.cpp |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/src/preferences/filetypes/IconView.cpp b/src/preferences/filetypes/IconView.cpp
    index 742508d..b9b688a 100644
    a b IconView::MouseDown(BPoint where)  
    813813            // start tracking - this icon might be dragged around
    814814            fDragPoint = where;
    815815            fTracking = true;
     816            SetMouseEventMask(B_POINTER_EVENTS, B_NO_POINTER_HISTORY);
    816817        }
    817818    }
    818819
    IconView::MouseMoved(BPoint where, uint32 transit, const BMessage* dragMessage)  
    903904        DragMessage(&message, dragBitmap, B_OP_ALPHA,
    904905            fDragPoint - BitmapRect().LeftTop(), this);
    905906        fDragging = true;
    906         SetMouseEventMask(B_POINTER_EVENTS, B_NO_POINTER_HISTORY);
    907907    }
    908908
    909909    if (dragMessage != NULL && !fDragging && AcceptsDrag(dragMessage)) {