mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-04-15 23:41:02 +08:00
[fix] reset to initial monitor on connection close via ResetToInitialMonitor to fix black screen
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user