-
Notifications
You must be signed in to change notification settings - Fork 6.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix CurrentVirtualDesktop
fetching from registry
#11760
Conversation
…back CurrentVirtualDesktop
@DHowett can you compare how Terminal did this and if we're correct here? |
Terminal implemented the check for the new version before the old version. |
@nitroin
|
Yep, of course, I'll try to mimic how terminal code behave. |
PR updated. Fun fact: the code was already very similar, now is practically the same. |
Funny you should mention that! Terminal copy/pasted this from the PT codebase. 😄 |
* fix(microsoft#11125): fallback to canonical regkey session unaware * chore(microsoft#11125): use wil::unique_hkey instead of HKEY for fallback CurrentVirtualDesktop * refactor: extract new explorer current virtual desktop behavior into a separate method
Fix
CurrentVirtualDesktop
fetching from registryWhat is this about:
On various Windows versions (from 21370.1 upwards) the current virtual desktop id is persisted in:
Instead of:
What is include in the PR:
Fallback check to read the correct registry key.
How does someone test / validate:
See repro steps #11125.
Quality Checklist
Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.