[fix] reset to initial monitor on connection close via ResetToInitialMonitor to fix black screen

This commit is contained in:
dijunkun
2026-03-02 15:42:44 +08:00
parent b13dac2093
commit 33d51b8ce5
15 changed files with 111 additions and 4 deletions

View File

@@ -148,6 +148,11 @@ int ScreenCapturerWin::SwitchTo(int monitor_index) {
return impl_->SwitchTo(monitor_index);
}
int ScreenCapturerWin::ResetToInitialMonitor() {
if (!impl_) return -1;
return impl_->ResetToInitialMonitor();
}
std::vector<DisplayInfo> ScreenCapturerWin::GetDisplayInfoList() {
if (!impl_) return {};
return impl_->GetDisplayInfoList();
@@ -195,4 +200,4 @@ void ScreenCapturerWin::RebuildAliasesFromImpl() {
}
}
} // namespace crossdesk
} // namespace crossdesk