Preserve layout after coming back from sleep
- Dominant language
- C
- Stars
- 29.6k
- Forks
- 750
- PR merge metrics
- No merged PRs in 30d
Description
I'm using a macbook pro with an external screen. Typically when it comes back from sleep, the macbook wakes up first, with the external screen coming in 10-20 seconds later.
Before the laptop goes to sleep, I have a nice layout with windows uniformly distributed between two monitors. Upon wakeup, because the second monitor takes its time, Yabai lays all of the windows on the laptop screen, and the external monitor is empty. I then manually reshuffle windows.
I dont mind it too much, but was hoping that there's maybe a way to avoid this that I'm missing.
My complements for a wonderful piece of software. I really missed something like this since I switched from Linux and ion3 a number of years ago.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue describes window placement changing when a MacBook wakes before its external display. No files, tests, or entry points are named; begin by reproducing the sleep and delayed-monitor sequence, then inspect how yabai handles display changes during wake. Done would mean the prior two-monitor layout is preserved without manual reshuffling.
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
- Needs clarification
- Newbie friendliness
- 30/100