Repository navigation
fix(tiling): a window leaving native fullscreen returns to the workspace it left (#884) - #885
Merged
Merged
Conversation
Closed
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
FullscreenTileskeeps the workspace of every tile released for native fullscreen, including a workspace's only tile. The split position is now optional.freeze_window_affinitiessends 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_homeonly uses the remembered workspace while it is enabled and managed.route_before_reconcileparks the window there. It now looks up the tile throughrecalled_tile, so the saved fullscreen split position applies there too.slots.len() < 2early return innative_fullscreen_positionsis gone. A workspace's only tile now also gets one native-fullscreen check when a complete snapshot omits its window.docs/controls.mdis updated.Tests: added
leaving_native_fullscreen_returns_to_the_workspace_it_leftinsrc/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.shandscripts/folder-shape.shpass. Nothing has been compiled or run yet: there is no Rust toolchain in this environment andscripts/checkneeds macOS, so runscripts/checkbefore merging.Fixes #884