From f40e8bff6969ab283cf58080a073c4ec5a90a5d8 Mon Sep 17 00:00:00 2001 From: Dimitri Schoolwerth Date: Wed, 27 May 2015 19:17:20 +0400 Subject: [PATCH] Fix mouse cursor not changing on OS X during DND The cursor almost always looks like the one used for copying. Add missing breaks in a switch statement to fix this. See #14726. --- src/osx/cocoa/window.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/osx/cocoa/window.mm b/src/osx/cocoa/window.mm index b64eaddd04..e4eabe8eea 100644 --- a/src/osx/cocoa/window.mm +++ b/src/osx/cocoa/window.mm @@ -1215,10 +1215,16 @@ unsigned int wxOnDraggingEnteredOrUpdated(wxWidgetCocoaImpl* viewImpl, { case wxDragLink: nsresult = NSDragOperationLink; + break; + case wxDragMove: nsresult = NSDragOperationMove; + break; + case wxDragCopy: nsresult = NSDragOperationCopy; + break; + default : break; }