diff --git a/app/lib/shell/windows/window_layer.dart b/app/lib/shell/windows/window_layer.dart index c7561937..4d8c075c 100644 --- a/app/lib/shell/windows/window_layer.dart +++ b/app/lib/shell/windows/window_layer.dart @@ -296,7 +296,6 @@ class _WindowLayerState extends State ), ), if (!entry.maximized) ..._resizeHandles(frame), - Positioned.fromRect(rect: frame, child: const WindowOutline()), ], ); final center = widget.bounds.center(Offset.zero); diff --git a/app/lib/shell/windows/window_navigator.dart b/app/lib/shell/windows/window_navigator.dart index 26e5f1da..8bc39f28 100644 --- a/app/lib/shell/windows/window_navigator.dart +++ b/app/lib/shell/windows/window_navigator.dart @@ -1,7 +1,8 @@ import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; -import 'window_frame.dart' show windowCornerRadius; +import 'window_frame.dart' + show WindowOutline, windowCornerRadius, windowTitleBarHeight; import 'window_scope.dart'; /// A floating window's own page stack. Pages pushed from the window's @@ -144,6 +145,18 @@ class WindowPageBox extends StatelessWidget { ), ), ), + // The window's edge, title bar included, over the page but under + // the tooltips and menus this navigator's overlay shows above it: + // drawn at the window layer it would cross them. + Positioned.fromRect( + rect: Rect.fromLTRB( + body.left, + body.top - windowTitleBarHeight(context), + body.right, + body.bottom, + ), + child: const WindowOutline(), + ), ], ); }