
I have a 2022 MBP 14″ (M1 Pro, Monterey 12.5.1), I often work with an external monitor in addition to the laptop display.
I use Spaces when doing so, it’s a great feature and I’ll organise various apps in each space according to what task I’m currently working on in that Space.
However when my mac sleeps and reawakens, it often rearranges those apps themselves, moving them from the space they previously existed, and into the (now reawakened) Space on the laptop itself.
Every time I look into this issue all I find are the docs for turning off “Automatically rearrange Spaces based on most recent use”. Which is not what the issue is (I have that turned off anyway).
The spaces themselves remain in place, the apps within them however are redistributed to another space on every startup.
The primary apps that seem affected are:
- Google Chrome
- Visual Studio Code
These stand out to me as they are typically sized larger than what my laptop screen can fit, in my mind on startup (before the Mac recognises the external monitor) they are resized and in doing so moved, but this is me trying to come up with some explanation for the madness.
To note; I have “Displays have separate Spaces” enabled to allow each monitor to have it’s own Space by design.
Trying to use this functionality when on every restart I have to spend 5 minutes manually recognising and dragging apps back to where they belong is absolutely killer.
EDIT: In addition to trying the wake timing as noted in a reply below, I’ve also attempted the fix in this (7 year old) thread I dug out on the same subject. Maintain allocation of windows to spaces on restart and external monitor unplugging
Adding an additional empty Space on the laptop itself seemingly does nothing to help.