Describe floating chats on the window system in the notes

This commit is contained in:
2026-11-10 21:43:37 +00:00
parent 16afda3634
commit 9d533fcad9
2 changed files with 74 additions and 124 deletions
+8 -4
View File
@@ -1,7 +1,7 @@
# Floating windows (window system core)
Plan: `docs/plans/floating-windows.md`. Phase 1 adds the shell-level window
system; no feature uses it yet (chats move in Phase 2, the terminal in Phase 3).
Plan: `docs/plans/floating-windows.md`. The shell-level window system hosts
floating chats (`notes/chat-floating-pane.md`); the terminal moves in Phase 3.
## Pieces (`lib/shell/windows/`)
@@ -31,8 +31,12 @@ system; no feature uses it yet (chats move in Phase 2, the terminal in Phase 3).
and never clipped to one.
- The window's navigator covers the whole host so popups anchored to a button
measure in app coordinates and tooltips paint outside the window; only the
content area takes input. So a `MenuAnchor` in window content needs
`useRootOverlay: true` (its panel may extend past the window).
content area takes input. So menus are `AppMenuAnchor`
(`ui/adaptive/app_menu_anchor.dart`), whose panel is in the root overlay; a
test rejects a bare `MenuAnchor`.
- A window takes the keyboard at the press, not after it, and never from a
popup that covers the app; its content is not the current surface
(`SurfaceVisibility`) while one does.
- Known limit: a tooltip of a window that is not on top can be covered by a
window above it where they overlap (tooltips paint in their own window's
overlay). Pressing a window raises it, so menus are not affected.