[Bug]: Mouse cursor is not properly positioned, when virtual monitors have different system high DPI scaling in Linux Wayland guests

Open
#945 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 6 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
39/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
c, linux

Research direction

The report identifies Guest Additions/Guest Control and Linux Wayland guests, but names no source files or tests. Start by tracing guest mouse coordinate handling for virtual monitors with different scaling in the Guest Additions code; use the reproduction conditions and attached video to confirm the behavior. Done means the cursor is correctly positioned on both monitors under the stated scaling setup.

Written by the indexing model from the issue text.

Description

bug
Version

7.2.22

Host OS Type

Windows

Host OS name + version

Windows 11

Host Architecture

x86

Guest OS Type

Linux

Guest Architecture

x86

Guest OS name + version

CachyOS, Ubuntu etc

Component

Guest Additions/Guest Control

What happened?

Mouse cursor is not properly positioned, when virtual monitors have different system high DPI scaling in Linux Wayland guests

How can we reproduce this?

Conditions on the video
Host: Windows 11
Guest: CachyOS/Ubuntu, KDE/Gnome, Wayland
Host scaling: 150%
Virtual box scaling: 100% for both virtual monitors
Virtual box guest scaling: 150% for Virtual Monitor 1 and 100% for Virtual Monitor 2.
https://github.com/user-attachments/assets/f7996ecc-2f05-4e8e-a82b-645d6dffc7f3

Image
Did you upload all of your necessary log files, screenshots, etc.?
  • Yes, I've uploaded all pertinent files to this issue.
Dominant language
C
Stars
1.4k
Forks
219
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from VirtualBox/virtualbox

All issues in VirtualBox/virtualbox

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.