microsoft / microsoft/DirectX-Graphics-Samples

Window client area is drawn incorrectly when changing multiple display configuration

Open
#694 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug samples
Dominant language
C++
Stars
6.8k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

The result:
HelloTriangle

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:

  1. Configure two displays in Extend these displays mode.
  2. Run D3D12HelloTriangle application from D3D12HelloWorld solution.
  3. Place the application window on the primary display.
  4. Change multiple displays settings from Extend these displays to Show only on *, where * is the primary display.
  5. When the display config change is finished, the window is drawn incorrectly.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.