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() --- test/test_local_copy_paste.c | 2 +- test/test_remote_copy_paste.c | 2 +- test/test_utils.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/test_local_copy_paste.c b/test/test_local_copy_paste.c index 737f193..1d0d3fc 100644 --- a/test/test_local_copy_paste.c +++ b/test/test_local_copy_paste.c @@ -92,7 +92,7 @@ onEvent(PuglView* view, const PuglEvent* event) if (test->state == PASTED) { test->state = RECEIVED_OFFER; - assert(!puglAcceptOffer(view, &event->offer, 0)); + assert(!puglAcceptOffer(view, &event->offer, 0, puglGetFrame(view))); } break; diff --git a/test/test_remote_copy_paste.c b/test/test_remote_copy_paste.c index a9f079e..8e2b752 100644 --- a/test/test_remote_copy_paste.c +++ b/test/test_remote_copy_paste.c @@ -105,7 +105,7 @@ onPasterEvent(PuglView* const view, const PuglEvent* const event) if (test->state == PASTED) { test->state = RECEIVED_OFFER; - assert(!puglAcceptOffer(view, &event->offer, 0)); + assert(!puglAcceptOffer(view, &event->offer, 0, puglGetFrame(view))); } break; diff --git a/test/test_utils.h b/test/test_utils.h index 80f28a0..92b2c58 100644 --- a/test/test_utils.h +++ b/test/test_utils.h @@ -358,7 +358,8 @@ printEvent(const PuglEvent* event, const char* prefix, const bool verbose) case PUGL_LOOP_LEAVE: return PRINT("%sLoop leave\n", prefix); case PUGL_DATA_OFFER: - return PRINT("%sData offer\n", prefix); + return PRINT( + "%sData offer at " PFFMT "\n", prefix, event->offer.x, event->offer.y); case PUGL_DATA: return PRINT("%sData\n", prefix); default: -- cgit v1.2.1