From 32733abab8546b708cab59a4df09f92eb3214f73 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 22 May 2022 20:24:05 -0400 Subject: Add region parameter to puglAcceptOffer() --- doc/c/clipboards.rst | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/c/clipboards.rst b/doc/c/clipboards.rst index ec66bd5..44f2960 100644 --- a/doc/c/clipboards.rst +++ b/doc/c/clipboards.rst @@ -82,10 +82,16 @@ it can accept the offer with :func:`puglAcceptOffer`: for (uint32_t t = 0; t < numTypes; ++t) { const char* type = puglGetClipboardType(view, t); if (!strcmp(type, "text/uri-list")) { - puglAcceptOffer(view, event, t); + puglAcceptOffer(view, + event, + t, + puglGetFrame(view)); } } +A view region must be given, +which the window system may use to optimize the process and/or provide user feedback. + When an offer is accepted, the data will be transferred and converted if necessary, then the view will be sent a :enumerator:`PUGL_DATA` event. -- cgit v1.2.1