mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
fix: non texture, multi window, switch display (#8353)
* fix: non texture, multi window, switch display Signed-off-by: fufesou <linlong1266@gmail.com> * fix build Signed-off-by: fufesou <linlong1266@gmail.com> --------- Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
@@ -2924,7 +2924,8 @@ openMonitorInNewTabOrWindow(int i, String peerId, PeerInfo pi,
|
||||
kMainWindowId, kWindowEventOpenMonitorSession, jsonEncode(args));
|
||||
}
|
||||
|
||||
setNewConnectWindowFrame(int windowId, String peerId, int? display, Rect? screenRect) async {
|
||||
setNewConnectWindowFrame(
|
||||
int windowId, String peerId, int? display, Rect? screenRect) async {
|
||||
if (screenRect == null) {
|
||||
await restoreWindowPosition(WindowType.RemoteDesktop,
|
||||
windowId: windowId, display: display, peerId: peerId);
|
||||
|
||||
@@ -2420,7 +2420,8 @@ class FFI {
|
||||
'Unreachable, failed to add existed session to $id, the displays is null while display is $display');
|
||||
return;
|
||||
}
|
||||
final addRes = bind.sessionAddExistedSync(id: id, sessionId: sessionId);
|
||||
final addRes = bind.sessionAddExistedSync(
|
||||
id: id, sessionId: sessionId, displays: Int32List.fromList(displays));
|
||||
if (addRes != '') {
|
||||
debugPrint(
|
||||
'Unreachable, failed to add existed session to $id, $addRes');
|
||||
|
||||
@@ -59,7 +59,10 @@ class RustdeskImpl {
|
||||
}
|
||||
|
||||
String sessionAddExistedSync(
|
||||
{required String id, required UuidValue sessionId, dynamic hint}) {
|
||||
{required String id,
|
||||
required UuidValue sessionId,
|
||||
required Int32List displays,
|
||||
dynamic hint}) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user