Guest mouse is offset from host mouse by -1,-1 when GA mouse capture active -> fixed as of 2 Aug 2011
|Reported by:||Mark Cranness||Owned by:|
|Component:||guest additions||Version:||VirtualBox 3.2.8|
|Keywords:||mouse pointer position offset||Cc:|
|Guest type:||other||Host type:||other|
With GA Mouse Integration enabled, the guest mouse pointer position is offset from the correct position.
(This is a follow up to "Windows XP Taskbar on Autohide no longer pops up" - http://www.virtualbox.org/ticket/6456.)
The mouse pointer displays at the host coordinates, but the pointer position seen by the guest is offset 1 left and 1 up from the host pointer position (the guest reads one lower in both x and y coordinates).
So on a 1280x1024 host display, guest full-screen, the guest mouse pointer goes from Y=0 to only 1022, while the host goes from 0 to 1023. On the guest, the bottom most position of Y=1023 CANNOT be reached. (The same problem also applies non-fullscreen, windowed mode.)
When the host reads Y=0, or Y=1, the guest reads Y=0. When the host reads X, the guest reads X-1.
If you use a paint program on the guest, you can see this difference. Pixels drawn appear one up and one left of where they are expected to appear based on the mouse pointer position, as compared to the same program running on the host.
This program (Windows) shows mouse pointer position as the mouse is moved (I run it on host and guest): http://www.filefront.com/17226592/PointerPositionRecorder.zip/ (I can provide source if required.)
Only happens when Mouse Integration is enabled.
Host: Windows XP, VB 3.2.8r64453, Guest: Windows XP, GA 3.2.8r64453 (and earlier versions)
Change History (4)
comment:2 by , 12 years ago
|Summary:||Guest mouse is offset from host mouse by -1,-1 when GA mouse capture active → Guest mouse is offset from host mouse by -1,-1 when GA mouse capture active -> fixed as of 2 Aug 2011|