mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-29 13:41:56 +02:00
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
37 KiB
37 KiB