open individual window, add offset

Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
dignow
2023-10-19 07:50:59 +08:00
parent d7036aae48
commit 80951a8e6e
3 changed files with 31 additions and 13 deletions

View File

@@ -200,8 +200,13 @@ void runMultiWindow(
case kAppTypeDesktopRemote:
// If screen rect is set, the window will be moved to the target screen and then set fullscreen.
if (argument['screen_rect'] == null) {
await restoreWindowPosition(WindowType.RemoteDesktop,
windowId: kWindowId!, peerId: argument['id'] as String?);
// int? display = argument['display'] as int?;
await restoreWindowPosition(
WindowType.RemoteDesktop,
windowId: kWindowId!,
peerId: argument['id'] as String?,
display: argument['display'] as int?,
);
}
break;
case kAppTypeDesktopFileTransfer: