-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Description
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.