mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-03-25 18:07:34 +08:00
[fix] disable clipboard sharing when not in control mode
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user