Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(wm): validate virtual desktops via reg
This commit refactors the validations that ensure that only commands and events originating on the same virtual desktop that komorebi was started on are managed. This was previously handled by the winvd crate which relied on undocumented APIs that broke as of Windows 11. This method, while not very elegant, seems like the best solution for now. In short, komorebi checks the registry (which has different paths on Win10 and Win11...) to keep track of the current virtual desktop id. This is problematic because we just end up comparing byte arrays, and there is no meaningful representation of the ids that are being compared, not even a GUID. Nevertheless, it works and it ensures that komorebi is limited to operating on a single virtual desktop. resolve #77
- Loading branch information
Showing
7 changed files
with
73 additions
and
69 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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