fix: lte should be lt like in linux.rs (#14344)

This commit is contained in:
cui
2026-02-19 22:24:32 +08:00
committed by GitHub
parent 9345fb754a
commit 20f11018ce

View File

@@ -107,9 +107,9 @@ pub fn get_focused_display(displays: Vec<DisplayInfo>) -> Option<usize> {
let center_x = rect.left + (rect.right - rect.left) / 2; let center_x = rect.left + (rect.right - rect.left) / 2;
let center_y = rect.top + (rect.bottom - rect.top) / 2; let center_y = rect.top + (rect.bottom - rect.top) / 2;
center_x >= display.x center_x >= display.x
&& center_x <= display.x + display.width && center_x < display.x + display.width
&& center_y >= display.y && center_y >= display.y
&& center_y <= display.y + display.height && center_y < display.y + display.height
}) })
} }
} }