Open
Conversation
Contributor
beefon
commented
Feb 22, 2026
- Adding VMWindow that renders VM. It is easier to find it in the app, and allows to operate the view hierarchy in less blind manner. It will make sure that VZVirtualMachineView is always first responder. It renders synthesised mouse clicks. It provides the source for screenshotting with and without synthesised mouse clicks visualisation.
- Implemented mouse clicks in virtual machines. The hacks in the internet do that by running private API to start per-VM VNC server, and then by connecting as VNC client and making clicks using it. It is nice solution and quite predictable. However, we are good citizens on Apple platforms and we tend to not use private API. (Do we?) We already require a window to be present for keyboard synthesis. The only difference is that mouse clicks are not delivered to the window if app is not active, which is rather disappointing. So the app becomes active in order to issue synthesised mouse clicks. I've tried to use CGEvents - it didn't work as well. Even when I tried to use accessibility to make clicks, it still didn't work unless the app is active.
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.