mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-10 18:01:29 +03:00
portable service only run on main display (#8525)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user