[GH-ISSUE #1501] All windows moved from monitor to Macbook display after unlocking screens #848

Closed
opened 2026-05-05 06:46:15 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @rdonkin on GitHub (Jan 7, 2024).
Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/1501

Before opening the issue, have you...?

  • Searched for existing issues
  • Looked through the wiki
  • Updated MonitorControl to the latest version (if applicable)

Describe the bug

When MonitorControl is running, this can happen:

  1. Lock screen via Apple menu (going to screensaver mode, not a monitor sleep or system sleep)
  2. Unlock by logging in

Symptom is that all windows on monitor are moved to the Macbook display.

Same happens if monitor is disconnected (USB-C cable) and reconnected.

This is only somewhat reproducible - but it has only been happening since I installed MonitorControl recently.

Workaround: kill MonitorControl (had been running for 22 days), and the above does not happen.

  • it may be enough to restart MonitorControl - after one restart, problem didn't happen

Steps to reproduce

  1. Put some windows on external display while MonitorControl is running
  2. Apple menu, Lock Screen
  3. Log in to unlock
  4. Windows will have moved from external display to Macbook display

Can also reproduce by disconnecting and re-connecting monitor (with USB-C cable).

Workaround:

  1. Kill MonitorControl process
  2. Repeat above sequence - windows will not move

Expected behavior

Windows don't move between displays after locking screen.

Anything else?

Macbook display is set as main display in Display system preferences. Monitor is set as extended display.

Mission Control preferences: set to "displays have separate Spaces"

If Macbook is put into Sleep mode, the windows do move even if MonitorControl is not running.

Environment Information (please complete the following information)

- macOS version: 12.7.1
- Mac model: Macbook Air M1 2020
- MonitorControl version: v4.2.0
- Monitor(s): Philips 272B7QUB
- Apple Silicon/M1 (yes or no): yes
Originally created by @rdonkin on GitHub (Jan 7, 2024). Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/1501 ### Before opening the issue, have you...? - [X] Searched for existing issues - [X] Looked through [the wiki](https://github.com/MonitorControl/MonitorControl/wiki) - [X] Updated MonitorControl to the latest version (if applicable) ### Describe the bug When MonitorControl is running, this can happen: 1. Lock screen via Apple menu (going to screensaver mode, not a monitor sleep or system sleep) 2. Unlock by logging in Symptom is that all windows on monitor are moved to the Macbook display. Same happens if monitor is disconnected (USB-C cable) and reconnected. This is only _somewhat_ reproducible - but it has only been happening since I installed MonitorControl recently. Workaround: kill MonitorControl (had been running for 22 days), and the above does not happen. - it may be enough to restart MonitorControl - after one restart, problem didn't happen ### Steps to reproduce 1. Put some windows on external display while MonitorControl is running 2. Apple menu, Lock Screen 3. Log in to unlock 4. Windows will have moved from external display to Macbook display Can also reproduce by disconnecting and re-connecting monitor (with USB-C cable). Workaround: 1. Kill MonitorControl process 2. Repeat above sequence - windows will not move ### Expected behavior Windows don't move between displays after locking screen. ### Anything else? Macbook display is set as main display in Display system preferences. Monitor is set as extended display. Mission Control preferences: set to "displays have separate Spaces" If Macbook is put into Sleep mode, the windows do move even if MonitorControl is not running. ### Environment Information (please complete the following information) ```markdown - macOS version: 12.7.1 - Mac model: Macbook Air M1 2020 - MonitorControl version: v4.2.0 - Monitor(s): Philips 272B7QUB - Apple Silicon/M1 (yes or no): yes ```
Author
Owner

@rdonkin commented on GitHub (Jan 7, 2024):

After a reboot due to macOS 12.7.2 update, this hasn't yet recurred - will report back if it does.

I really like MonitorControl btw so I will try to restart the process if this does recur.

<!-- gh-comment-id:1880116160 --> @rdonkin commented on GitHub (Jan 7, 2024): After a reboot due to macOS 12.7.2 update, this hasn't yet recurred - will report back if it does. I really like MonitorControl btw so I will try to restart the process if this does recur.
Author
Owner

@MPFGlaser commented on GitHub (Jan 8, 2024):

Interestingly enough, I've been experiencing similar behaviour over the past months. Only caveat being that I installed MonitorControl only today, so it might be on the MacOS side of things.

<!-- gh-comment-id:1881744859 --> @MPFGlaser commented on GitHub (Jan 8, 2024): Interestingly enough, I've been experiencing similar behaviour over the past months. Only caveat being that I installed MonitorControl only today, so it might be on the MacOS side of things.
Author
Owner

@rdonkin commented on GitHub (Jan 9, 2024):

Thanks for the comment @MPFGlaser. It seems there are many other causes for this behaviour, even though it appears that MonitorControl may be involved in my case.

Reports of similar issues where MonitorControl is not mentioned, with various triggers:

So your issue may not be related to MonitorControl. Next time it happens, maybe see if killing or restarting MonitorControl solves this?

<!-- gh-comment-id:1882604866 --> @rdonkin commented on GitHub (Jan 9, 2024): Thanks for the comment @MPFGlaser. It seems there are many other causes for this behaviour, even though it appears that MonitorControl may be involved in my case. Reports of similar issues where MonitorControl is not mentioned, with various triggers: - https://apple.stackexchange.com/questions/401432/how-to-stop-mac-from-moving-windows-from-external-display-to-laptop-when-opening - https://discussions.apple.com/thread/253787680?sortBy=best - many similar threads here So your issue may not be related to MonitorControl. Next time it happens, maybe see if killing or restarting MonitorControl solves this?
Author
Owner

@waydabber commented on GitHub (Jan 9, 2024):

This is most probably not a MonitorControl issue. You usually need to reset the windowserver configuration which manages display layouts. To do that, do steps 3,4 and 9 in this tutorial: https://github.com/waydabber/BetterDisplay/wiki/Safe-mode,-app-reset,-app-removal#exhaustive-reset

<!-- gh-comment-id:1882727513 --> @waydabber commented on GitHub (Jan 9, 2024): This is most probably not a MonitorControl issue. You usually need to reset the windowserver configuration which manages display layouts. To do that, do steps 3,4 and 9 in this tutorial: https://github.com/waydabber/BetterDisplay/wiki/Safe-mode,-app-reset,-app-removal#exhaustive-reset
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/MonitorControl#848
No description provided.