Skip to content

Always On Top: Dedup the alwaysontop command id in window system menu#45845

Merged
zateutsch merged 1 commit intomainfrom
dev/vanzue/protect-always-on-top
Mar 3, 2026
Merged

Always On Top: Dedup the alwaysontop command id in window system menu#45845
zateutsch merged 1 commit intomainfrom
dev/vanzue/protect-always-on-top

Conversation

@vanzue
Copy link
Copy Markdown
Contributor

@vanzue vanzue commented Feb 28, 2026

Summary of the Pull Request

We picked a command id for always on top, although it has little possibility, but may collide with other window system menu item, so before inject, try to see if it persists, if yes, then we don't inject.

PR Checklist

  • Closes: #xxx
  • 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

Validation Steps Performed

A window with the same id
image

You can see there is no always ontop overriding the test item

Normal window:
image

@zateutsch zateutsch merged commit 95835a4 into main Mar 3, 2026
15 checks passed
@vanzue vanzue deleted the dev/vanzue/protect-always-on-top branch March 3, 2026 05:36
@zateutsch zateutsch added this to the PowerToys 0.98 milestone Mar 4, 2026
@zateutsch zateutsch added the Product-Always On Top Refers to the idea of a Always on Top Powertoy label Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0.98 Product-Always On Top Refers to the idea of a Always on Top Powertoy

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants