Skip to content

Add Grab And Move middle-click maximize#48483

Draft
Azotlikide wants to merge 2 commits into
microsoft:mainfrom
Azotlikide:codex/grabandmove-middle-click-maximize
Draft

Add Grab And Move middle-click maximize#48483
Azotlikide wants to merge 2 commits into
microsoft:mainfrom
Azotlikide:codex/grabandmove-middle-click-maximize

Conversation

@Azotlikide

Copy link
Copy Markdown

Summary of the Pull Request

Adds an optional Grab And Move shortcut for modifier + middle-click on the window under the cursor:

  • maximizes normal windows
  • restores maximized windows
  • respects the existing Grab And Move exclusions and Game Mode behavior
  • ignores windows that do not expose a maximize box

This also updates DATA_AND_PRIVACY.md because the existing Microsoft.PowerToys.GrabAndMove_ShortcutUse event can now report Action=maximize.

Related to #47754. This intentionally does not close #47754 because that issue also discusses double-click and minimize behavior.

PR Checklist

Detailed Description of the Pull Request / Additional comments

This keeps middle-click maximize/restore separate from edge snap behavior so the PR stays atomic. The shortcut uses the same configured modifier as Grab And Move and emits the existing shortcut telemetry event with the new maximize action.

Validation Steps Performed

  • git diff --check main...HEAD
  • tools\build\build.ps1 -Platform x64 -Configuration Debug -Path src\modules\GrabAndMove\GrabAndMove
  • tools\build\build.ps1 -Platform x64 -Configuration Debug -Path src\settings-ui\Settings.UI.UnitTests with DOTNET_MSBUILD_SDK_RESOLVER_* pointed at SDK 10.0.301
  • vstest.console.exe ... /TestCaseFilter:"FullyQualifiedName~ViewModelTests.GrabAndMove": 2 tests passed
  • Attempted full PowerToys.slnx Debug x64 build; restore was blocked by a 401 from the shine-oss Azure DevOps feed while downloading .NET 8 packages

@Azotlikide

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Comment thread DATA_AND_PRIVACY.md Fixed
Comment thread src/modules/GrabAndMove/GrabAndMove/main.cpp Fixed
@github-actions

This comment has been minimized.

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.

[Grab And Move] Allow window snapping and double click to maximize/minize

2 participants