Focus recent doesn't work if space changed display
- Dominant language
- C
- Stars
- 29.6k
- Forks
- 758
- PR merge metrics
- No merged PRs in 30d
Description
I have come across this unexpected behaviour (at least for me):
### Steps to reproduce:
1. Change active space to another display
`yabai -m space --display 2`
2. Focus recent
`yabai -m space --focus recent`
The following message is printed on the console:
`cannot focus an already focused space.`
### Expected outcome:
The space that was selected before starting this whole process is selected (recent)
Thank you for your support!
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the issue with `yabai -m space --display 2` followed by `yabai -m space --focus recent`, and inspect the handling of these space commands. The work is done when focusing recent selects the previously selected space instead of printing `cannot focus an already focused space.`
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