[feat] remember remote display resolutions across connections

This commit is contained in:
dijunkun
2026-11-11 14:14:00 +08:00
parent 17b4db25fb
commit a862bf6b35
15 changed files with 414 additions and 67 deletions
+2
View File
@@ -223,6 +223,8 @@ struct RemoteAction {
// Optional host information extension, also returned with resolution status.
std::vector<DisplayResolutionInfo> display_resolutions;
DisplayResolutionChange resolution_change;
// Controller preferences sent with its initial host information.
std::vector<DisplayResolutionPreference> preferred_display_resolutions;
std::string to_json() const;
bool from_json(const std::string& json_string);