mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-11-08 15:03:37 +00:00
Remote window restore, add 300 milliseconds delay for maximizing after the frame is restored
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
1 parent
bf32477f89
commit
4fc65aac84
1 file changed
+4
-1
@@ -1699,7 +1699,10 @@ Future<bool> restoreWindowPosition(WindowType type,
|
||||
}
|
||||
if (lpos.isMaximized == true) {
|
||||
await restoreFrame();
|
||||
await wc.maximize();
|
||||
// An duration is needed to avoid the window being restored after maximized.
|
||||
Future.delayed(Duration(milliseconds: 300), () async {
|
||||
await wc.maximize();
|
||||
});
|
||||
} else {
|
||||
await restoreFrame();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user