Can't mirror the main display after closing the MacBook lid
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 68/100
Hướng nghiên cứu
Start with validate_operation_mirrors in Renderer/Bridge/src/actor/bridge/operations.rs and compare its handling of saved mirror blocks with monitor_rows and operation_selector_matches_live_primary. The report identifies a hidden mirror that points at the new main display as the failing case. Add a regression test for making a mirror the main display and then mirroring another display; done means that display change succeeds while the hidden mirror setting remains saved.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Area
Displays or Spaces
Wallpaper
Any
What you did
- With the MacBook open, set one PHL 272S1 monitor to mirror the main display.
- Close the lid. That monitor becomes the main display, and the display list shows every display as independent.
- Set the other monitor to mirror the main display.
What went wrong
The app refuses with:
WallpaperMachine.BridgeError.Error(kind: WallpaperMachine.BridgeErrorKind.invalidInput, message: "unknown mirror target for display 2")
Display 2 is the new main display, not the one I changed, and the app log has no entry for the error. I saw this once and couldn't reproduce it later. macOS probably doesn't always pick the mirrored monitor as the new main display when the lid closes.
Cause: The app keeps the mirror setting of the monitor that just became main and hides it in the display list, so the setting can come back once the MacBook is main again. In config.toml that monitor's block still says mode = "mirror" with mirror_target = primary, which now points at the monitor itself. validate_operation_mirrors (Renderer/Bridge/src/actor/bridge/operations.rs) checks every saved mirror block, including the hidden one, so every display change fails until I open the lid again. I found this by reading the code and haven't tested a patched build.
Suggested fix: In validate_operation_mirrors, skip blocks that operation_selector_matches_live_primary matches, as monitor_rows does when it hides them. A regression test could make a mirror the main display and then set another display to mirror.
environment.txt in the report marks display 3 as main because it uses NSScreen.main, the screen with the focused window. The menu-bar display is display 2.
What you expected
The other monitor mirrors the new main display, and the old mirror setting waits until the MacBook is main again.
Diagnostics report
WallpaperMachine-diagnostics-20261203-142713.zip
Details from the app
No response
App version
1.18.0 (71) (macOS 27.2.1)
- Ngôn ngữ chính
- Swift
- Star
- 1.3k
- Fork
- 41
- Merge trung bình
- 4 giờ 46 phút
- Pull request đã merge (30 ngày)
- 86
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của MMFoundation/WallpaperMachine
-
area: settings bug Haiku review: no-score ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MMFoundation/WallpaperMachine#346 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: settings bug review: no-score Sonnet ui
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 66/100
MMFoundation/WallpaperMachine#345 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Quitting fails with "macOS is still restoring the desktop wallpaper" after closing the MacBook lidĐang mởarea: displays bug review: no-score Sonnet ui
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
MMFoundation/WallpaperMachine#343 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
problem appĐang mởbug review: low Sonnet status: needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
MMFoundation/WallpaperMachine#342 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Web] vảy đuôiĐang mởbug review: low Sonnet status: needs-triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
MMFoundation/WallpaperMachine#341 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của MMFoundation/WallpaperMachine
Issue tương tự
-
bug priority:low status:queued
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Make the HTTP server's keep-alive and headers timeouts configurableCó thể đã có người làm @mattgodbolt đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
compiler-explorer/compiler-explorer#9902 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
android internals
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
software-mansion-labs/Diplomat#291 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
🎉 Add USBview-HSĐang mởaddition
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
jaywcjlove/awesome-mac#5403 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày