mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
adjust window offset on start
Signed-off-by: dignow <linlong1265@gmail.com>
This commit is contained in:
@@ -1486,10 +1486,11 @@ Future<Offset?> _adjustRestoreMainWindowOffset(
|
||||
: kMobileMaxDisplaySize)
|
||||
.toDouble();
|
||||
}
|
||||
if (left > frameRight! ||
|
||||
top > frameBottom! ||
|
||||
(left + width) < frameLeft ||
|
||||
(top + height) < frameTop!) {
|
||||
final minWidth = 10.0;
|
||||
if ((left - minWidth) > frameRight! ||
|
||||
(top - minWidth) > frameBottom! ||
|
||||
(left + width + minWidth) < frameLeft ||
|
||||
top < frameTop!) {
|
||||
return null;
|
||||
} else {
|
||||
return Offset(left, top);
|
||||
|
||||
Reference in New Issue
Block a user