mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T100899: Drag and Drop failing depending on window position
Regression introduced in rBbbf87c4f7509, which now relies on OS coordinates for Drag and Drop. These coordinates did not match on different OSs.
This commit is contained in:
parent
07b547ef96
commit
81ec5ec366
1 changed files with 3 additions and 0 deletions
|
|
@ -1123,6 +1123,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleDraggingEvent(GHOST_TEventType eventType
|
|||
case GHOST_kEventDraggingEntered:
|
||||
case GHOST_kEventDraggingUpdated:
|
||||
case GHOST_kEventDraggingExited:
|
||||
window->clientToScreenIntern(mouseX, mouseY, mouseX, mouseY);
|
||||
pushEvent(new GHOST_EventDragnDrop(
|
||||
getMilliSeconds(), eventType, draggedObjectType, window, mouseX, mouseY, NULL));
|
||||
break;
|
||||
|
|
@ -1331,6 +1332,8 @@ GHOST_TSuccess GHOST_SystemCocoa::handleDraggingEvent(GHOST_TEventType eventType
|
|||
return GHOST_kFailure;
|
||||
break;
|
||||
}
|
||||
|
||||
window->clientToScreenIntern(mouseX, mouseY, mouseX, mouseY);
|
||||
pushEvent(new GHOST_EventDragnDrop(
|
||||
getMilliSeconds(), eventType, draggedObjectType, window, mouseX, mouseY, eventData));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue