An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.
Rust androidanydeskdartflatpakflutterflutter-appsioslinuxmacosp2prdpremote-controlremote-desktoprustrust-langteamviewervncwaylandwindows
Fix. Windows snap-function (#6680)
fufesou79411430a55c
diff --git a/flutter/lib/models/input_model.dart b/flutter/lib/models/input_model.dartindex 458ccf3ad..eeff4d2bb 100644--- a/flutter/lib/models/input_model.dart+++ b/flutter/lib/models/input_model.dart@@ -890,9 +890,11 @@ class InputModel {}int minX = rect.left.toInt();- int maxX = (rect.left + rect.width).toInt() - 1;+ // https://github.com/rustdesk/rustdesk/issues/6678+ // For Windows, [0,maxX], [0,maxY] should be set to enable window snapping.+ int maxX = (rect.left + rect.width).toInt() - (peerPlatform == kPeerPlatformWindows ? 0 : 1);int minY = rect.top.toInt();- int maxY = (rect.top + rect.height).toInt() - 1;+ int maxY = (rect.top + rect.height).toInt() - (peerPlatform == kPeerPlatformWindows ? 0 : 1);evtX = trySetNearestRange(evtX, minX, maxX, 5);evtY = trySetNearestRange(evtY, minY, maxY, 5);if (kind == kPointerEventKindMouse) {