Fix, windows display orders

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou
2023-11-12 00:08:16 +08:00
parent 58596ad1ab
commit 8f8c9ddc25
7 changed files with 53 additions and 23 deletions

View File

@@ -139,7 +139,7 @@ pub(super) async fn check_init() -> ResultType<()> {
if *CAP_DISPLAY_INFO.read().unwrap() == 0 {
let mut lock = CAP_DISPLAY_INFO.write().unwrap();
if *lock == 0 {
let mut all = Display::all()?;
let mut all = super::display_service::get_displays(true)?;
let num = all.len();
let primary = super::display_service::get_primary_2(&all);
let current = primary;