Skip to content

Prevent closing "Always on Top" windows unless the feature is disabled #39744

@JuanNicolasRandazzo

Description

@JuanNicolasRandazzo

Description of the new feature / enhancement

When using "Always on Top", I noticed there's no protection against accidentally closing the pinned window. This has happened to me a few times, and I believe it could be a useful feature to prevent such situations.

One possible solution would be to completely block window closing (via the close button or shortcuts like Alt+F4) while "Always on Top" is enabled. Alternatively, prompting the user with a confirmation dialog before closing could also work.

I would love to work on implementing this feature and contribute to the project.

Scenario when this would be used?

This would be helpful when watching a video, reading a document, or following instructions in a fixed window. Accidental closure via keyboard shortcuts or mouse clicks can interrupt the task, especially in critical workflows or fullscreen overlays.

Supporting information

Similar behavior is seen in some kiosk modes or apps like presentation tools that lock the window unless explicitly closed. This enhancement would give PowerToys users more control and reliability over pinned windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs-TriageFor issues raised to be triaged and prioritized by internal Microsoft teams

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions