Skip to content

Add window tiling/layout geometry planner (halves, grids, cascade)#343

Merged
JE-Chen merged 2 commits into
devfrom
feat/window-layout-batch
Jun 22, 2026
Merged

Add window tiling/layout geometry planner (halves, grids, cascade)#343
JE-Chen merged 2 commits into
devfrom
feat/window-layout-batch

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 22, 2026

Copy link
Copy Markdown
Member

Compute where to place application windows. save/restore_window_layout replay exact saved positions and snap_window moves one window to a half/quarter — nothing computes a fresh multi-window layout.

  • tile_rect (AC_tile_rect): rectangle for a named slot of the screen work area — halves, quadrants, thirds (left_third …), center, full. gap insets all sides. Returns a WindowRect (.as_tuple() / .to_dict()).
  • grid_rects (AC_grid_rects): one rectangle per cell of an R×C grid, row-major.
  • cascade_rects (AC_cascade_rects): count staggered, overlapping rectangles clamped to the screen (size defaults to 60% of the work area).
  • available_slots() lists the slot names; unknown slot / non-positive grid dims raise ValueError. Executor screen arg defaults to the live primary screen.
  • Pure geometry: cross-platform, no device dependency, fully headless-testable; composes with any window-move backend. Wired through all 5 layers (core/facade/executor/MCP/Script Builder under Window) + headless test + EN/Zh docs + WHATS_NEW. Qt-free.

@codacy-production

codacy-production Bot commented Jun 22, 2026

Copy link
Copy Markdown

Not up to standards ⛔

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit c7594bb into dev Jun 22, 2026
15 of 16 checks passed
@JE-Chen JE-Chen deleted the feat/window-layout-batch branch June 22, 2026 20:48
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant