aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-05-22 20:24:05 -0400
committerDavid Robillard <d@drobilla.net>2023-11-11 09:47:23 -0500
commit32733abab8546b708cab59a4df09f92eb3214f73 (patch)
treeb6bed60281f9dd3b71006b7cb7aa7ab056d6a70c /test
parent61980dbb9e6968f9d99df9cbd4bbe2f46f0c5050 (diff)
downloadpugl-32733abab8546b708cab59a4df09f92eb3214f73.tar.gz
pugl-32733abab8546b708cab59a4df09f92eb3214f73.tar.bz2
pugl-32733abab8546b708cab59a4df09f92eb3214f73.zip
Add region parameter to puglAcceptOffer()
Diffstat (limited to 'test')
-rw-r--r--test/test_local_copy_paste.c2
-rw-r--r--test/test_remote_copy_paste.c2
-rw-r--r--test/test_utils.h3
3 files changed, 4 insertions, 3 deletions
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: