-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows get moved to other monitors after waking up from sleep #1167
Comments
I started to see this immediately after upgrading to monterey, on 0.15.3 and 0.15.5. |
I've narrowed this down a bit more - it's always the second window (even if there are more than 2) in each workspace of my 2nd monitor that gets moved from that workspace into the first workspace of my 3rd monitor. |
I have been tracking this, too, for the past week. My second monitor is set as the extended display. I find every chrome window (on second monitor) gets moved to the active workspace on the first monitor. However, the chrome app I have open doesn’t get moved. On one or two occasions, the app moved, not the chrome windows, but I haven’t been able to reproduce it. When I unlock my mac, it always switches the second monitor workspace to the first available (this pre-dates the monterey upgrade). I just assumed this was macos being opinionated; it’s plausible that there’s something in amethyst that is mucking with second windows. When I realized it only affected a single application, I started to suspect an off-by-one error somewhere. I don’t understand enough to know why the layout is changing anyway on unlock. |
I have this same issue -- I only have two monitors, and I suspect what's happening is that when the system sleeps, it moves the windows to the primary monitor (the one where the "menu bar" is) and then when it wakes up they all just stay there. In my setup, I have a lot of windows full-screen on the smaller monitor and just three on the bigger screen, so I end up needing to push a bunch of windows around to get back to the ideal state. I just set the smaller monitor to be the primary; I'll report back and see if that helps, but a way to somehow restore layouts on demand would me amazing :) |
If we don’t fix the issue, at least there’s now a support group. I did encounter something similar with xmonad (on linux) — on restart, all windows would be assigned to the same (first) workspace. With Amethyst, though, restarts are fine, for me. |
FYI still happening on 0.15.6. |
This has been happening to me too with 2 external monitors, one of which is the main display. After unlocking the screen, windows from seemingly random desktops get moved to the active desktop on the main display. I'll update if I see a more deterministic pattern. |
I have the same issue with 3 monitors. Things I tried that don't work:
Non-solution/ workaround
|
I've had the same problem on my computer with 2 external LG screens. It seems they had the exact same identifier so MacOS could not distinguish which is which when waking up. I exchanged one LG screen against a monitor of a different brand, which promptly fixed the problem. |
Interesting, don't think this is the problem in my case though. The two external monitors are HP and LG with different resolution. This issue is still present in 0.19.0 btw, just to be clear. Sorry I can't help, sadly I don't speak Swift. |
Describe the bug
After waking up from sleep, some windows are on a different monitor than they were before.
Applications:
Chrome, Finder
To Reproduce
Steps to reproduce the behavior:
Expected behavior
2 windows would still be on the center monitor
Screenshots
Before sleep - center:
Before sleep - right:
After sleep - center:
After sleep - right:
Versions:
Debug Info
Additional context
iMac Pro 2018, built-in monitor on the left, 2 other external monitors as center and right.
Most times, only 1 window gets moved to the right monitor, but there have been a few cases where all of them did.
This started a few days ago, possibly when the last update was pushed out?
The text was updated successfully, but these errors were encountered: