Skip to main content

queue_target_layout_split

Function queue_target_layout_split 

Source
pub(super) async fn queue_target_layout_split(
    state: &AppState,
    target_tab_id: &str,
    block_id: &str,
    target_block_id: &str,
    dir: u8,
) -> Result<(), String>
Expand description

Phase 4b/4c — place a redocked block in the exact slot the ghost overlay previewed: a split of the pane holding target_block_id.

dir is the window’s DropDirection. The split each one makes is listed once, for srv and for the window’s preview of the drop (backend::layout::drop_split): a side of the pane takes half of it, the side of its whole group a narrow band of it, and the middle (or an unknown code) has no split, so the block goes to the first free slot instead. See ANALYSIS_FLOATING_PANE_GHOST_LANDING_DISCONNECT_2026_07_04.md.