Skip to main content

Module window_close

Module window_close 

Source
Expand description

window service handler — CloseWindow. Split out of window.rs; see that file’s dispatcher for the full method list.

Structs§

ClosingWindow 🔒
What a session record and the closed windows keep of a closing window, read before its row is pruned.

Functions§

close_unshown_workspace 🔒
ws_id lost its last window (window_id, now closed).
close_workspace 🔒
Delete a window’s contents no window shows, every agent in it closed gracefully first (agent_teardown, Policy::close()): a window removed from the workspace, open or closed, or one with nothing to keep.
detach_window 🔒
A workspace switch closes window window_id (user_workspace_switch): the window’s row goes, as CloseWindow drops it, and its contents stay for the caller to keep. The host closes the OS window afterwards; that close then finds nothing left to do. Returns the contents when no other window shows them.
handle_close_window 🔒
store_block_ids 🔒
Every block in a workspace’s tabs (regular and pinned), read from the store.