Display and control your Android device
Remove "get clipboard" call
Romain Vimontbccd12bf5c26
diff --git a/README.md b/README.mdindex 3aa9180c..01c5df71 100644--- a/README.md+++ b/README.md@@ -504,7 +504,6 @@ requested orientation.It is possible to synchronize clipboards between the computer and the device, inboth directions:- - `MOD`+`c` copies the device clipboard to the computer clipboard;- `MOD`+`Shift`+`v` copies the computer clipboard to the device clipboard (andpastes if the device runs Android >= 7);- `MOD`+`v` _pastes_ the computer clipboard as a sequence of text events (but@@ -609,7 +608,6 @@ _[Super] is typically the "Windows" or "Cmd" key._| Rotate device screen | `MOD`+`r`| Expand notification panel | `MOD`+`n`| Collapse notification panel | `MOD`+`Shift`+`n`- | Copy device clipboard to computer | `MOD`+`c`| Paste computer clipboard to device | `MOD`+`v`| Copy computer clipboard to device and paste | `MOD`+`Shift`+`v`| Enable/disable FPS counter (on stdout) | `MOD`+`i`diff --git a/app/scrcpy.1 b/app/scrcpy.1index d79b3964..0353f59b 100644--- a/app/scrcpy.1+++ b/app/scrcpy.1@@ -292,10 +292,6 @@ Expand notification panel.B MOD+Shift+nCollapse notification panel-.TP-.B MOD+c-Copy device clipboard to computer-.TP.B MOD+vPaste computer clipboard to devicediff --git a/app/src/cli.c b/app/src/cli.cindex 216763a2..95525401 100644--- a/app/src/cli.c+++ b/app/src/cli.c@@ -260,9 +260,6 @@ scrcpy_print_usage(const char *arg0) {" MOD+Shift+n\n"" Collapse notification panel\n""\n"- " MOD+c\n"- " Copy device clipboard to computer\n"- "\n"" MOD+v\n"" Paste computer clipboard to device\n""\n"diff --git a/app/src/input_manager.c b/app/src/input_manager.cindex 625f79a7..099906cb 100644--- a/app/src/input_manager.c+++ b/app/src/input_manager.c@@ -160,16 +160,6 @@ collapse_notification_panel(struct controller *controller) {}}-static void-request_device_clipboard(struct controller *controller) {- struct control_msg msg;- msg.type = CONTROL_MSG_TYPE_GET_CLIPBOARD;-- if (!controller_push_msg(controller, &msg)) {- LOGW("Could not request device clipboard");- }-}-static voidset_device_clipboard(struct controller *controller, bool paste) {char *text = SDL_GetClipboardText();@@ -392,11 +382,6 @@ input_manager_process_key(struct input_manager *im,rotate_client_right(im->screen);}return;- case SDLK_c:- if (control && !shift && !repeat && down) {- request_device_clipboard(controller);- }- return;case SDLK_v:if (control && !repeat && down) {if (shift) {