[feat] add a control bar shortcut menu for sending Ctrl+Alt+Del and remote lock commands

This commit is contained in:
dijunkun
2026-05-25 15:57:31 +08:00
parent 15bd9e9fdc
commit ce004af379
7 changed files with 92 additions and 10 deletions
+3 -3
View File
@@ -204,11 +204,11 @@ int Render::ConnectTo(const std::string& remote_id, const char* password,
props->params_.user_id = props->local_id_.c_str();
props->peer_ = CreatePeer(&props->params_);
props->control_window_width_ = title_bar_height_ * 9.0f;
props->control_window_width_ = title_bar_height_ * 10.0f;
props->control_window_height_ = title_bar_height_ * 1.3f;
props->control_window_min_width_ = title_bar_height_ * 0.65f;
props->control_window_min_height_ = title_bar_height_ * 1.3f;
props->control_window_max_width_ = title_bar_height_ * 9.0f;
props->control_window_max_width_ = title_bar_height_ * 10.0f;
props->control_window_max_height_ = title_bar_height_ * 7.0f;
props->connection_status_ = ConnectionStatus::Connecting;
@@ -272,4 +272,4 @@ int Render::ConnectTo(const std::string& remote_id, const char* password,
return 0;
}
} // namespace crossdesk
} // namespace crossdesk