refact, separate remote window, save session position

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-08-02 22:02:18 +08:00
parent 773a74e2a9
commit 688ecef4cc
6 changed files with 60 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ class RustDeskMultiWindowManager {
newSessionWindow() async {
final windowController = await DesktopMultiWindow.createWindow(msg);
windowController
..setFrame(const Offset(0, 0) & const Size(1280, 720))
..setFrame(const Offset(0, 0) & Size(1280 + windowController.windowId * 20, 720 + windowController.windowId * 20))
..center()
..setTitle(getWindowNameWithId(
remoteId,