feat: add virtual desktop notification support#56
Open
amnweb wants to merge 2 commits intomirober:masterfrom
Open
feat: add virtual desktop notification support#56amnweb wants to merge 2 commits intomirober:masterfrom
amnweb wants to merge 2 commits intomirober:masterfrom
Conversation
…ktop 1 - When no fallback is provided, remove() now picks desktop 2 if removing desktop 1, avoiding passing the same desktop as both target and fallback. - Fixes COM error (-2147024809) caused by RemoveDesktop receiving identical desktop and fallback parameters.
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.
This adds support for
IVirtualDesktopNotificationthe COM interface Windows uses to push desktop change events instead of polling.Pyvda currently has no way to get notified when desktops change, you have to poll. Windows exposes
IVirtualDesktopNotificationfor exactly this.Example:
Build coverage notification GUIDs and vtable layouts are defined for:
Win10 (< 20231)
Win11 21H2 (20231–22620)
Win11 23H2 (22621–22630)
Win11 23H2 b3085+ / 24H2 (22631+)
Tested on build 26200.8037 (25H2).