Make the terminal's floating mode a window of the window system
Phase 3 of docs/plans/floating-windows.md. The terminal window kind reuses TerminalHub; TerminalWindows keeps the window in step with TerminalLayout (show opens or shows it, hide minimises it, Minimise and Close hide the terminal). The bottom panel stays a shell panel. The first window takes the frame and maximised state pipelines.terminal-layout.v1 saved. The terminal's own float chrome and FloatingLayer are deleted.
This commit is contained in:
@@ -55,6 +55,16 @@ class WindowManager extends ChangeNotifier {
|
||||
.where((w) => _here(w) && w.kind == kind && w.contentId == contentId)
|
||||
.firstOrNull;
|
||||
|
||||
/// The frame the current server's window of [kind] for [contentId] has,
|
||||
/// or had when it last closed.
|
||||
Rect? lastFrame(String kind, String contentId) =>
|
||||
find(kind, contentId)?.frame ??
|
||||
_frames[windowFrameKey(
|
||||
kind,
|
||||
(kinds[kind]?.serverScoped ?? false) ? _server : null,
|
||||
contentId,
|
||||
)];
|
||||
|
||||
Iterable<WindowEntry> inGroup(String groupId) =>
|
||||
windows.where((w) => w.groupId == groupId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user