aboutsummaryrefslogtreecommitdiffstats
path: root/src/mac.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac.m')
-rw-r--r--src/mac.m13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mac.m b/src/mac.m
index dcc2ee3..2d492a9 100644
--- a/src/mac.m
+++ b/src/mac.m
@@ -1913,8 +1913,9 @@ puglGetClipboardType(const PuglView* PUGL_UNUSED(view),
PuglStatus
puglAcceptOffer(PuglView* const view,
- const PuglDataOfferEvent* const PUGL_UNUSED(offer),
- const uint32_t typeIndex)
+ const PuglDataOfferEvent* const offer,
+ const uint32_t typeIndex,
+ const PuglRect region)
{
PuglWrapperView* const wrapper = view->impl->wrapperView;
NSPasteboard* const pasteboard = [NSPasteboard generalPasteboard];
@@ -1930,8 +1931,12 @@ puglAcceptOffer(PuglView* const view,
wrapper->dragOperation = NSDragOperationCopy;
wrapper->dragTypeIndex = typeIndex;
- const PuglDataEvent data = {
- PUGL_DATA, 0U, puglGetTime(view->world), (uint32_t)typeIndex};
+ const PuglDataEvent data = {PUGL_DATA,
+ 0U,
+ puglGetTime(view->world),
+ (double)region.x,
+ (double)region.y,
+ (uint32_t)typeIndex};
PuglEvent dataEvent;
dataEvent.data = data;