Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

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

cui20f11018ce08
diff --git a/src/platform/windows.rs b/src/platform/windows.rs
index c40e87441..582451240 100644
--- a/src/platform/windows.rs
+++ b/src/platform/windows.rs
@@ -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_y = rect.top + (rect.bottom - rect.top) / 2;
center_x >= display.x
- && center_x <= display.x + display.width
+ && center_x < display.x + display.width
&& center_y >= display.y
- && center_y <= display.y + display.height
+ && center_y < display.y + display.height
})
}
}