Stacked-mode window order changes after full-screen
- Dominant language
- C
- Stars
- 29.6k
- Forks
- 750
- PR merge metrics
- No merged PRs in 30d
Description
Running v.7.0.4.
If I put yabai into stacked mode, and then have 2 apps back-to-front, where app2 is front-most:
> app1: window1
> app2: window1 [front]
Now app2 creates a new window:
> app1: window1
> app2: window1, window2 [front]
Now app2 launches another app:
> app1: window1
> app2: window1, window2
> app3: window1 [front]
When I quit app3 I would expect to go back to:
> app1: window1
> app2: window1, window2 [front]
However what happens is that I am returned to this, notice that app1 and app2 have swapped:
> app2: window1, window2
> app1: window1 [front]
And have to manually re-arrange the apps to get back to what I was doing.
Edit: I just realized something important. When app2 launches app3, app3 goes straight into full-screen. If I quit from full-screen, I get the behaviour mentioned above. However, if I exit full-screen mode in app3 first, and then quit app3, I get the expected behaviour, which is for app2 to be the next front-most app after app3 quits.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the stacked-mode sequence on macOS: create the windows described, launch app3 into full-screen, and quit it without first exiting full-screen. Compare the resulting front-most order with the expected order; done means quitting app3 preserves app2 as the front-most application without manual rearrangement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, macos
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100