-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Always synchronize clipboard on explicit COPY/CUT #2834
Conversation
No problem, it can be synchronized on my Huawei device. |
@rom1v However, on my Xiaomi device, even if --no-clipboard-autosync is not enabled, the device clipboard cannot be synchronized to the computer. I guess that the Xiaomi system may be blocking access to the device clipboard,I don’t know if you can No repair. |
@Helaer Does this help: #1423 (comment) / #1423 (comment) ? |
When I copy the text on the Xiaomi device, the console displays the following log information: |
Are these your custom logs? (
This happens when the device sends a clipboard content which is already the same as the computer clipboard. |
This is a test version you provided when I reported a bug in version 1.20. |
Oh, ok, #2779 👍 |
I originally thought that this version could display more logs, so I used this version for testing. |
If --no-clipboard-autosync is enabled, the automatic clipboard synchronization performed whenever the device clipboard changes is disabled. But on explicit COPY and CUT scrcpy shortcuts (MOD+c and MOD+x), the clipboard should still be synchronized, so that it remains possible to copy-paste from the device to the computer. This is consistent with the behavior of MOD+v, which pastes the computer clipboard to the device. Refs #2228 <#2228> Refs #2817 <#2817> PR #2834 <#2834>
Always synchronize clipboard on explicit COPY/CUT
If
--no-clipboard-autosync
is enabled, the automatic clipboard synchronization whenever the device clipboard changes is disabled.But on explicit COPY and CUT scrcpy shortcuts (MOD+c and MOD+x), the clipboard should still be synchronized, so that it remains possible to copy-paste from the device to the computer.
This is consistent with the behavior of MOD+v, which pastes the computer clipboard to the device.
Refs #2228
Refs #2817
Here are binaries so that you can test easily. Please replace these files in your v1.20 release:
scrcpy.exe
sha256:0cee83cb1c44cf159845b16f3a0ad348fea76c75b846f19d1548866db71e275ascrcpy-server
sha256:c740e7888cdafb1d2753ee5858e8bd566d26498a79a49fe95a47c6f416130495