Merge pull request #2652 from fufesou/fix/adjust_window

fix adjust window, check visiable frame size
This commit is contained in:
RustDesk 2022-12-26 14:59:09 +08:00 committed by GitHub
commit a848fa0f9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -701,11 +701,11 @@ class _RemoteMenubarState extends State<RemoteMenubar> {
return false;
}
double scale = _screen!.scaleFactor;
double selfWidth = _screen!.frame.width;
double selfHeight = _screen!.frame.height;
double selfWidth = _screen!.visibleFrame.width;
double selfHeight = _screen!.visibleFrame.height;
if (isFullscreen) {
selfWidth = _screen!.visibleFrame.width;
selfHeight = _screen!.visibleFrame.height;
selfWidth = _screen!.frame.width;
selfHeight = _screen!.frame.height;
}
final canvasModel = widget.ffi.canvasModel;