disable windows position env, https://www.reddit.com/r/rustdesk/comments/14ijhx6/windows_10_and_11_multiple_screens_causes/
This commit is contained in:
parent
c8176eb7c6
commit
46f29f41af
1 changed files with 3 additions and 0 deletions
|
|
@ -1444,6 +1444,9 @@ Future<Offset?> _adjustRestoreMainWindowOffset(
|
|||
/// Restore window position and size on start
|
||||
/// Note that windowId must be provided if it's subwindow
|
||||
Future<bool> restoreWindowPosition(WindowType type, {int? windowId}) async {
|
||||
if (bind.mainGetEnv("DISABLE_RUSTDESK_RESTORE_WINDOW_POSITION").isNotEmpty) {
|
||||
return false;
|
||||
}
|
||||
if (type != WindowType.Main && windowId == null) {
|
||||
debugPrint(
|
||||
"Error: windowId cannot be null when saving positions for sub window");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue