Repository navigation
Conversation
Owner
|
Thank you! Merged into the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #189
Problem
With rust-explorer drawing the desktop, pressing Alt+F4 on it destroyed the desktop window and ended its process. The wallpaper and icons disappeared and no shut down dialog appeared.
Cause
The desktop window did not handle
WM_CLOSE, soDefWindowProcWdestroyed it.Fix
WM_CLOSEby opening a native task dialog: Shut down (focused by default), Restart, Sleep, Sign out and Cancel.topbartowinrust-common, so both programs share it.Behaviour notes
WM_CLOSEsent to the desktop also opens the dialog.shutdown /s /t 0, the same command the top bar uses (no Fast Startup).Testing
winrust-commontests pass (25/25), including the new power action testrust-explorertests passcargo test --workspacestops at a failingrtaskmgr-win32test on my machine. That crate's tests also fail onfb1688awithout this change. Test programs after it, includingtopbar, were not reached in that run.Related
Changes to the hardware smoke tests in
gpu.rsandhw.rsare not part of this PR. They will be submitted separately.