Skip to content

Add window positioning and sizing with Alt+mouse button#46817

Draft
foxmsft wants to merge 15 commits intomicrosoft:mainfrom
foxmsft:foxmsft/window-geometry
Draft

Add window positioning and sizing with Alt+mouse button#46817
foxmsft wants to merge 15 commits intomicrosoft:mainfrom
foxmsft:foxmsft/window-geometry

Conversation

@foxmsft
Copy link
Copy Markdown
Contributor

@foxmsft foxmsft commented Apr 7, 2026

Summary of the Pull Request

This adds a new toy, WinPos, that allows dragging (left click) or resizing (right click) of windows while the Alt key is pressed.

PR Checklist

  • Communication: I've discussed this with core contributors already. If the work hasn't been agreed, this work might be rejected
  • Tests: Added/updated and all pass
  • Localization: All end-user-facing strings can be localized
  • Dev docs: Added/updated
  • New binaries: Added on the required places
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

There are some things to look into:

  • THROTTLE_INTERVAL_MS shouldn't be necessary, it's there as a stopgap for performance. Maybe the GetTickCount() 10/16 ms resolution is the issue.
    • Made the position change async.
  • Add configuration for the overlay color and opacity.
  • Add configuration for the size & geometry text.
  • Automatically detect games (maybe for from Game Bar).
  • Improve the handling (absorption and replay) of the Alt key.
  • Configure the keyboard modifiers (Alt, Win, Shift, any combination of...).

Validation Steps Performed

@niels9001 niels9001 marked this pull request as draft April 8, 2026 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Alt+Drag or Windows+Drag to move windows

1 participant