Skip to content

Fix getting stuck in multitkasing view#2790

Merged
lenemter merged 2 commits intomainfrom
leolost/test-stuck-in-mtv
Mar 6, 2026
Merged

Fix getting stuck in multitkasing view#2790
lenemter merged 2 commits intomainfrom
leolost/test-stuck-in-mtv

Conversation

@leolost2605
Copy link
Member

@leolost2605 leolost2605 commented Mar 3, 2026

I'm not sure if there are any current reproducers for this (there might very well be some because it's a valid use case for the gesture controller) but before #2694 (still happens if you revert the commit) this happened when you had

  1. move to new workspace on maximize enabled
  2. two maximized vs code windows
  3. then logged out
  4. logged back in again
  5. opened some window
  6. and then opened vs code which would cause the two windows to try to be restored
  7. then switched the workspace via gesture to the left

Now you're stuck.
It only happened because our move to new workspace behavior was a bit buggy before #2694 but what it triggered is a valid use case of the controller so we should be able to handle it.

This PR does that and adds a safeguard.

See the commit messages for some reasoning.

We guarantee for every START to get an END so make sure
we actually can guarantee it.
A propagation of a commit can cause the user of the
controller to call goto which then sets a timeline.
However that timeline would be overwritten again when we
set the timeline after the commit.
@leolost2605 leolost2605 requested a review from a team March 3, 2026 16:22
Copy link
Member

@lenemter lenemter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't reproduce the issue but code LGTM

@lenemter lenemter merged commit c93e689 into main Mar 6, 2026
6 checks passed
@lenemter lenemter deleted the leolost/test-stuck-in-mtv branch March 6, 2026 09:57
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.

2 participants