mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-12 18:44:25 +08:00
fix(hid): share macOS drag compatibility across OTG and CH9329
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user