microsoft / microsoft/PowerToys

CmdPal: window briefly resizes when shown on a monitor with different DPI

Open
#45,957 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Bug Product-Command Palette
Dominant language
C
Stars
139k
Forks
8.6k
PR merge metrics
PR metrics pending

Description

Microsoft PowerToys version

0.98

Installation method

Dev build in Visual Studio

Area(s) with issue?

Command Palette

Steps to reproduce

When the WinUI 3 window is summoned on a monitor with a different DPI, a
visible resize/glitch occurs before the window fully settles (for a split of a second).

  1. Start the app with the window cloaked.
  2. Move focus to a monitor with a different DPI scale.
  3. Summon the window with the global hotkey.
  4. Observe the window as it is repositioned and uncloaked.
Image
✔️ Expected Behavior

The window should appear already centered and fully rendered at the correct DPI, without any visible resize or redraw.

❌ Actual Behavior

A visual glitch is visible during the DPI transition. The window appears to resize or redraw after being shown.

Additional Information

No response

Other Software

No response

Contributor guide

Open the contributing guide

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 by reproducing the issue in the Command Palette WinUI 3 window using the listed monitor and DPI transition steps, then trace the global-hotkey summon, reposition, and uncloaking entry points. Done means the window appears centered and fully rendered at the target DPI without a visible resize or redraw.

Written by the indexing model from the issue text.

Assessment

Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.