Skip to content

fix(tiling): a window leaving native fullscreen returns to the workspace it left (#884) - #885

Merged
opencodejr[bot] merged 1 commit into
devfrom
bot/issue-884
Dec 4, 2026
Merged

opencodejr[bot] merged 1 commit into
devfrom
bot/issue-884

Conversation

@opencodejr

@opencodejr opencodejr Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Fixes #884, reported by @Tarquinen with sanitized logs from two runs.

Before: while a window is in macOS native fullscreen, observation skips it and its slot is released after the 2 s omission settle. Only its split position was remembered (#874), only when it shared the workspace with other tiles, and only used if it happened to come back to that same workspace. Nothing kept which workspace it left, so on exit it was adopted like a new window on whichever workspace was active by then. A workspace switch pressed right after leaving fullscreen took the window along and left the original workspace empty.

After:

  • FullscreenTiles keeps the workspace of every tile released for native fullscreen, including a workspace's only tile. The split position is now optional.
  • freeze_window_affinities sends an unowned window with that record back to its workspace (Inferred), after relaunch recall and before empty-display or current-display adoption. Route rules still win.
  • fullscreen_home only uses the remembered workspace while it is enabled and managed.
  • When the home workspace is hidden, route_before_reconcile parks the window there. It now looks up the tile through recalled_tile, so the saved fullscreen split position applies there too.
  • The slots.len() < 2 early return in native_fullscreen_positions is gone. A workspace's only tile now also gets one native-fullscreen check when a complete snapshot omits its window.
  • docs/controls.md is updated.

Tests: added leaving_native_fullscreen_returns_to_the_workspace_it_left in src/app/tests/ordered_out.rs: a lone tile on workspace 1 enters native fullscreen past the settle, the user switches to workspace 2, then it leaves fullscreen. It must end up on workspace 1, parked. scripts/file-size.sh and scripts/folder-shape.sh pass. Nothing has been compiled or run yet: there is no Rust toolchain in this environment and scripts/check needs macOS, so run scripts/check before merging.

Fixes #884

@opencodejr
opencodejr Bot merged commit b327e7c into dev Dec 4, 2026
2 checks passed
@opencodejr
opencodejr Bot deleted the bot/issue-884 branch December 4, 2026 13:01
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.

bug: a window leaving native fullscreen joins the active workspace instead of the one it left

0 participants