diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_local_copy_paste.c | 2 | ||||
-rw-r--r-- | test/test_remote_copy_paste.c | 2 | ||||
-rw-r--r-- | test/test_utils.h | 3 |
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: |