mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-05-11 02:16:00 +02:00
fix: resize top edge (#9081)
Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
parent
071f51cf6f
commit
92752765ba
9 changed files with 31 additions and 8 deletions
|
@ -3492,7 +3492,8 @@ Widget buildVirtualWindowFrame(BuildContext context, Widget child) {
|
|||
);
|
||||
}
|
||||
|
||||
get windowEdgeSize => isLinux && !_linuxWindowResizable ? 0.0 : kWindowEdgeSize;
|
||||
get windowResizeEdgeSize =>
|
||||
isLinux && !_linuxWindowResizable ? 0.0 : kWindowResizeEdgeSize;
|
||||
|
||||
// `windowManager.setResizable(false)` will reset the window size to the default size on Linux and then set unresizable.
|
||||
// See _linuxWindowResizable for more details.
|
||||
|
@ -3570,3 +3571,19 @@ Widget netWorkErrorWidget() {
|
|||
],
|
||||
));
|
||||
}
|
||||
|
||||
List<ResizeEdge>? get windowManagerEnableResizeEdges => isWindows
|
||||
? [
|
||||
ResizeEdge.topLeft,
|
||||
ResizeEdge.top,
|
||||
ResizeEdge.topRight,
|
||||
]
|
||||
: null;
|
||||
|
||||
List<SubWindowResizeEdge>? get subWindowManagerEnableResizeEdges => isWindows
|
||||
? [
|
||||
SubWindowResizeEdge.topLeft,
|
||||
SubWindowResizeEdge.top,
|
||||
SubWindowResizeEdge.topRight,
|
||||
]
|
||||
: null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue