microsoft / microsoft/DirectX-Graphics-Samples
Window client area is drawn incorrectly when changing multiple display configuration
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 6.8k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
The result:

The offset of the client area is at the top-left corner of the window. The contents behind the window are showing through at the bottom and right side of the window. Moving the window corrects the issue. This seems to be a D3D/DXGI issue, as I'm unable to reproduce it with an application using OpenGL.
Windows 10 19042.804
Using two 1920 x 1080 displays
How to reproduce:
- Configure two displays in Extend these displays mode.
- Run D3D12HelloTriangle application from D3D12HelloWorld solution.
- Place the application window on the primary display.
- Change multiple displays settings from Extend these displays to Show only on *, where * is the primary display.
- When the display config change is finished, the window is drawn incorrectly.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the D3D12HelloTriangle application in the D3D12HelloWorld solution and reproduce the issue using the listed two-display configuration steps. Trace how the window responds when the display configuration changes, then verify that the client area is redrawn correctly without exposing the area behind the window.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100