mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-08-20 05:21:36 +08:00
add minimize button on fullscreen toolbar
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@ -1389,6 +1389,13 @@ Future<void> saveWindowPosition(WindowType type, {int? windowId}) async {
|
||||
isMaximized = await wc.isMaximized();
|
||||
break;
|
||||
}
|
||||
if (Platform.isWindows) {
|
||||
const kMinOffset = -10000;
|
||||
if (position.dx < kMinOffset || position.dy < kMinOffset) {
|
||||
debugPrint("Invalid position: $position, ignore saving position");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
final pos = LastWindowPosition(
|
||||
sz.width, sz.height, position.dx, position.dy, isMaximized);
|
||||
|
Reference in New Issue
Block a user