fix(hid): share macOS drag compatibility across OTG and CH9329

This commit is contained in:
mofeng-git
2026-09-10 23:00:05 +08:00
parent 1967d22dff
commit 78af9f67de
18 changed files with 542 additions and 101 deletions

View File

@@ -218,6 +218,11 @@ impl AppState {
pub async fn publish_device_info(&self) {
let device_info = self.get_device_info().await;
if let SystemEvent::DeviceInfo { video, .. } = &device_info {
if let Some((width, height)) = video.resolution {
self.hid.set_screen_resolution(width, height).await;
}
}
let _ = self.device_info_tx.send(Some(device_info));
}