Add experimental multi-monitor wallpaper sync across virtual desktops#695
Draft
David-Lzy wants to merge 1 commit into
Draft
Add experimental multi-monitor wallpaper sync across virtual desktops#695David-Lzy wants to merge 1 commit into
David-Lzy wants to merge 1 commit into
Conversation
David-Lzy
force-pushed
the
agent/sync-spanned-virtual-desktop-wallpapers
branch
2 times, most recently
from
July 20, 2026 06:35
e5ae259 to
73ac99d
Compare
David-Lzy
force-pushed
the
agent/sync-spanned-virtual-desktop-wallpapers
branch
from
July 20, 2026 06:39
73ac99d to
92eb616
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
IDesktopWallpaperWhy
Windows 11 stores a wallpaper path for each virtual desktop, while WDD's per-display path updates only affect the active desktop. Switching desktops can therefore reveal a stale or single-monitor wallpaper until an external script reapplies the current theme.
This change gives every virtual desktop the same already-composed multi-monitor image. Switching desktops no longer needs a polling script or a delayed refresh, and the existing per-display theme choices remain visually distinct on the physical monitors.
Implementation notes
IDesktopWallpaperAPI supplies monitor IDs, screen-coordinate rectangles, background color, and the current wallpaper position.UpdateWallpaperPathForAllDesktopsis an internal Windows interface. Its known Windows 11 22H2/23H2 and 24H2+ vtable layouts are isolated in one file, the option is disabled by default, and all failures are logged and rolled back.VirtualDesktoppackage dependency.Tests
dotnet build src/WinDynamicDesktop.csproj --configuration Releasedotnet test test/WinDynamicDesktop.Tests.csproj --configuration Release --filter type!=system— 10 passedThe interactive system test was left to CI because it intentionally changes the logged-in user's real wallpaper and first-run configuration.
Closes #694
Related: #321