tao icon indicating copy to clipboard operation
tao copied to clipboard

fix(windows): exit process on `WM_ENDSESSION`

Open Legend-Master opened this issue 3 months ago • 2 comments

Reference: https://github.com/tauri-apps/tauri/pull/14479#issuecomment-3562121016

Open to suggestion on this one, we can detect lParam here to do special handling to Restart Manager but I honestly feel like the Windows shutdown behavior itself is a bit of a myth so might just to the exit ourselves regardlesss

Legend-Master avatar Nov 21 '25 13:11 Legend-Master

Package Changes Through 3363fcc10509cf851f341a51cf5c845fa39adf96

There are 1 changes which include tao with patch

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
tao 0.34.5 0.34.6

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

github-actions[bot] avatar Nov 21 '25 13:11 github-actions[bot]

After the testing in https://github.com/rust-windowing/winit/pull/4425#discussion_r2558437389, I think it should be possible to exit normally without the std::process:exit here, but that requires us to adopt https://github.com/rust-windowing/winit/pull/2767 or our current way of pulling the message through GetMessageW (GetMessageW dispatches none queued messages by itself and only returns on queued messages) will not return to us (or maybe we can post a message to the message queue?)

Legend-Master avatar Nov 26 '25 03:11 Legend-Master