Monterey scrambles my virtual desktops

After upgrading to Monterey I find that the windows on my MacBook Pro's virtual desktops end up getting shuffled around willy-nilly. In my working environment I normally have two virtual desktops that have four or five XQuartz windows on each of them and a couple more virtual desktops that contain browser windows, mail and slack, etc. I have two external monitors that I keep connected via a docking station that normally have just one or two virtual desktop each that normally just have a browser window and my Zoom window when I'm in a meeting.


At night I put my laptop to sleep, wait for the monitors to say "Signal lost" and then I close the lid. Back in the Big Sur and Catalina days when I opened the laptop in the morning I'd occasionally, maybe once per week, find that all my XQuartz windows had shifted to the upper left corner of their respective virtual desktop. It was a pain to drag them back where I wanted them, but it didn't happen all that often.


After upgrading to Monterey, 12.0.1 and also on 12.1, I open the laptop to find that half my XQuartz windows from each of those two virtual desktops have migrated to whatever virtual desktop I was looking at when I closed the lid along with a couple of the browser windows that used to be on the virtual desktops that were originally on the external monitors.


This is really a big pain!! I organize my work into separate virtual desktops. I don't want to have to shuffle all my windows back around every morning. Actually, it just happened again when I took a bio-break this evening and grabbed a glass of water ... I didn't even close the lid although the screen saver did kick in and the MacBook went to sleep and had to be woken up upon my return.

MacBook Pro 16″, macOS 12.1

Posted on Dec 16, 2021 9:48 PM

Reply

Similar questions

6 replies

Jan 10, 2022 10:07 PM in response to genieen16

Ah ha!! I believe I've figured out what is causing my symptoms ... but I do not yet have a solution to prevent it from happening.


I have two external monitors on my MacBook, both in "Extended Display" mode. My Built-in Retina (3072x1920) on the left, an older low-res "SyncMaster" display in vertical mode (90º rotation, 1200x1600) in the middle and my 75" Sony TV (1920x1080) on the right. I put the MacBook to sleep before I close the lid, but it decides to wake up itself from time to time.


I currently have 14 virtual desktops. Many of these normally live on the built-in display and contain four XQuartz windows arranged such that each one occupies a quarter of the screen, NW, NE, SW, SE. Sometimes when I open the MacBook, I find that all the windows that were located on the left (west) side of all of these virtual desktops have migrated to the left side of some other virtual desktop and I have to drag them back to their respective project's desktop that still contain the windows that started out on the right side of the screen.


My theory is that the auto-wakeup is somehow trying to render these desktops on the narrow display, finding that the windows on the left side of the screen won't fit and deciding that they were dragged onto some other desktop. I cannot reproduce this behavior by dragging one of these virtual desktops to the narrow display. That properly renders the windows as overlapping and when dragged back to a wide display the windows get pushed back out into their respective corners (sort of).


This issue did not occur until upgrading to Monterey. I had issues with all my windows getting bunched up in the upper left corner of their respective desktop, but at least they didn't migrate to other desktops.


I have not yet contacted Apple support as I seem to have to talk to a live person rather than describing my issues via, say, email (and then I have to repeat it all to the next person I talk to after I get mysteriously disconnected), but now that I have a better insight as to what's happening I'll try that route. I just figured I'd update this thread while the epiphany was still fresh in my mind.

Dec 17, 2021 5:21 PM in response to genieen16

Yes, I'm well aware how to use my virtual desktops ... right now I have thirteen of them.


It's not just XQuartz that has the problem ... note that I said that a couple of browser windows (Firefox) also migrated to the different desktop as well. XQuartz is just the app that I have the most windows of and the one whose window positioning is most critical. I want this window in the upper left corner, that one in the lower right, etc.


This spontaneous migration of application windows between virtual desktops did not occur before I upgraded to Monterey. It doesn't happen every time I close the lid and open it again, but it happens frequently enough to be painfully annoying. It seems to happen randomly; if I could figure out how to reproduce it I'd give you more specifics.

Dec 17, 2021 4:40 PM in response to kr_ken

Hello, kr_ken!


From your post, it sounds like you are having issues with virtual desktops that you have set up on your Mac. We’re glad that you reached out to the Apple Support Communities. We want to try and help get you some helpful information. To verify, have you followed all the steps in this guide for how to create and work in multiple spaces on your Mac: Work in multiple spaces on Mac.


Also, you may want to reach out to the XQuartz app developer to see if they have any information as to how to prevent this from happening. Here's more information on how you can reach out to them: Contact a third-party vendor.


Best wishes!

Dec 18, 2021 5:17 AM in response to kr_ken

kr_ken,


Thank you for returning to the Apple Support Communities and providing these details. If the issue is happening with multiple virtual desktops, you may want to reach out to Apple directly. They may be able to provide more direct troubleshooting to isolate the cause of the problem. If you need help with accessing Apple, check out the information on this page: Contact Apple for support and service.


We hope you are able to find the guidance you need. We appreciate your contribution to the Apple Support Communities.


Kind regards!

Dec 18, 2021 2:02 PM in response to Owl-53

Yep, I'm running XQuartz 2.8.1 ... if something comes out post-Monterey I'll surely update.


I'm just posting here in the hopes that someone else can replicate the issues I'm seeing. It seems to require two external monitors, one of which might be a bit slower to come online when it receives a signal. But I can only speak from empirical evidence.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Monterey scrambles my virtual desktops

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.