portable service only run on main display (#8525)

Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
21pages
2024-06-29 14:17:24 +08:00
committed by GitHub
parent 1fd170b089
commit d67afa49b4
46 changed files with 123 additions and 183 deletions

View File

@@ -895,7 +895,7 @@ pub mod client {
if portable_service_running != RUNNING.lock().unwrap().clone() {
log::info!("portable service status mismatch");
}
if portable_service_running {
if portable_service_running && display.is_primary() {
log::info!("Create shared memory capturer");
return Ok(Box::new(CapturerPortable::new(current_display)));
} else {