Mouse cursor position is reported incorrectly when the screen is rotated inside a macOS VM
- Dominant language
- Swift
- Stars
- 35.5k
- Forks
- 1.8k
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 7
Description
**Describe the issue**
Mouse cursor position (and mouse clicks) are reported incorrectly when the screen is rotated inside a macOS VM
**Configuration**
* UTM Version: v4.4.0 (Beta) / 4.4.0 (88)
* macOS Version: 14.0 Beta (23A5328b)
* Mac Chip (Intel, M1, ...): M1 (MacBook Air M1, 16 GB RAM)
Steps to reproduce:
1. Launch a macOS 13 or macOS 14 (beta) VM (didn't test on a macOS 12 VM)
2. Inside the VM, from the menu: System Settings... / Displays
3. Click "Rotation" -> 90° (the screen rotates and a dialog appears)
4. Try to click "Confirm" with the mouse (trackpad), very difficult to do (probably won't work)
What happens: the screen seems to rotate correctly, but it looks like the mouse cursor position and mouse clicks are still reported to the guest macOS as if the screen wasn't rotated at all.
What I expected: the mouse cursor to work "normally" (rotated, with the screen)
After a couple of attempts, I was able to click the "Confirm" button by clicking around blindly and guessing where the dialog and the buttons would be if the screen wasn't rotated. After that, the screen stayed rotated, but the mouse clicks were still reported incorrectly.
It's kind of difficult to explain. Here's a short screen recording I made after successfully rotating the screen, that hopefully illustrates the mouse cursor problem. Notice that the rest of the system was still technically working properly: I was able to open menus by clicking in the "old" ("unrotated") place (top left corner) etc.
https://github.com/utmapp/UTM/assets/42669366/3246912d-2a3c-49fd-9a72-e13c03594e18
Contributor guide
Assessment
This issue has not been assessed yet.