[fix] disable clipboard sharing when not in control mode

This commit is contained in:
dijunkun
2026-03-05 17:46:27 +08:00
parent 319416f1b7
commit 81cb1d6c0b
4 changed files with 15 additions and 10 deletions

View File

@@ -1546,7 +1546,8 @@ void Render::InitializeModules() {
std::shared_lock lock(client_properties_mutex_);
int ret = -1;
for (const auto& [remote_id, props] : client_properties_) {
if (props && props->peer_ && props->connection_established_) {
if (props && props->peer_ && props->connection_established_ &&
props->enable_mouse_control_) {
ret = SendReliableDataFrame(props->peer_, data, size,
props->clipboard_label_.c_str());
if (ret != 0) {