From 6537c2ef011cf730c4f26b047131041e065094ec Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 31 May 2019 15:43:25 +0200 Subject: [PATCH] Add clipboard logs Synchronizing local and device clipboards in invisible. Add INFO logs on success. --- app/src/receiver.c | 1 + server/src/main/java/com/genymobile/scrcpy/Device.java | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/receiver.c b/app/src/receiver.c index 0f989489..1c80bb00 100644 --- a/app/src/receiver.c +++ b/app/src/receiver.c @@ -26,6 +26,7 @@ static void process_msg(struct receiver *receiver, struct device_msg *msg) { switch (msg->type) { case DEVICE_MSG_TYPE_CLIPBOARD: + LOGI("Device clipboard copied"); SDL_SetClipboardText(msg->clipboard.text); break; } diff --git a/server/src/main/java/com/genymobile/scrcpy/Device.java b/server/src/main/java/com/genymobile/scrcpy/Device.java index f791266b..f6219a93 100644 --- a/server/src/main/java/com/genymobile/scrcpy/Device.java +++ b/server/src/main/java/com/genymobile/scrcpy/Device.java @@ -149,6 +149,7 @@ public final class Device { public void setClipboardText(String text) { serviceManager.getClipboardManager().setText(text); + Ln.i("Device clipboard set"); } static Rect flipRect(Rect crop) {