Ticket #14366 (reopened defect)

Opened 3 years ago

Last modified 2 years ago

Cursor misscaled in HiDPI mode when using mouse integration

Reported by: nitrous Owned by:
Priority: minor Component: GUI
Version: VirtualBox 5.0.0 Keywords: HiDPI, retina, mouse integration, cursor
Cc: Guest type: Linux
Host type: Mac OS X


I am using an OS X 10.10.4 host on a Macbook Pro retina with an archlinux guest, exposing unscaled hidpi output to the guest. When mouse integration is enabled, the cursor is comically oversized -- multiplied by a factor of 2 from the hidpi bug because of my retina display, and another 1.5x from the guest's dpi, giving a 3x size cursor.  This forum post suggests it affects other guests too, though I'm not sure about other hosts.

I think the problem is probably that the mouse integration code which implements the hardware cursor is hidpi-unaware and so writes the cursor pixels naively instead of to the underlying device pixels. As a result, the cursor is obviously pixellated and out-of-place with the rest of the guest. Presumably the solution is to simply test whether unscaled mode is on and to then remap the cursor to device pixels.

Change History

comment:1 Changed 3 years ago by dax

Just to confirm: same problem affects Windows 8.1 Guest and HiDPI activated. Temporary workaround: disabling Mouse Integration.

comment:2 Changed 3 years ago by Radhe

I have a Windows 10 guest on Mac OS 10.10.5 (Yosemite) host using VirtualBox 5.0.4. Same problem.

Workaround is not a good one for me, personally. Rather deactivate Unscaled HiDPI mode.

comment:3 Changed 3 years ago by s4y

Same here, this is annoying.

comment:4 Changed 3 years ago by tk111

Same story on OS X as host, and Linux & Windows (guest), cursor is huge when hidpi & scaling is On.

comment:5 Changed 3 years ago by 32bits

Same here. OS X host, Windows 10 guest. Disabling mouse integration is the only work around.

comment:6 Changed 3 years ago by hardingt

Also having the same issue, this issue is now 9 months old, more and more HiDPI devices are being released, this is going to show up more and more often. OSX Host, Windows 10 client

Last edited 3 years ago by hardingt (previous) (diff)

comment:7 Changed 3 years ago by Grillbrick

Also having the same issue. Mac OS 10.11.4 (Host) and Windows 10 (Guest).

comment:8 Changed 2 years ago by frank

Should be fixed in 5.1. Please try the most recent available Beta (currently 5.1 Beta 3).

comment:9 Changed 2 years ago by frank

  • Status changed from new to closed
  • Resolution set to fixed

comment:10 Changed 2 years ago by adaugherity

  • Status changed from closed to reopened
  • Resolution fixed deleted

This does not appear to be fixed in 5.1.2 -- I still have the giant mouse cursors in a Windows 10 guest.

(I currently have much bigger problems with Unscaled HiDPI, like #15707, but noting for the record that the mouse cursor bug is still present.)

comment:11 Changed 2 years ago by Jorrit

A similar issue is the following:

I have 4K display but I want to run my Win10 and Ubuntu machines on lodpi so I set scaling to 200%. Everything works fine, much better than VMware, except for the cursor: it is displayed at half the expected size.

comment:12 Changed 2 years ago by hardingt

Still not fixed, 10.11.5 Host, Windows 10 Enterprise Guest, 5.0.26 r108824. Giant mouse cursor in HiDPI mode. If you turn off mouse integration it is back to the size it should be, but choppy as hell, which is probably why mouse integration exists.

Last edited 2 years ago by hardingt (previous) (diff)
Note: See TracTickets for help on using tickets.
ContactPrivacy policyTerms of Use