wslg icon indicating copy to clipboard operation
wslg copied to clipboard

qemu mouse tracking issue with display scaling in WSLg

Open jblang opened this issue 1 year ago • 2 comments

Version

Microsoft Windows [Version 10.0.22621.900]

WSL Version

  • [X] WSL 2
  • [ ] WSL 1

Kernel Version

5.15.74.2-microsoft-standard-WSL2

Distro Version

Ubuntu 22.04

Other Software

QEMU emulator version 6.2.0 (Debian 1:6.2+dfsg-2ubuntu6.5)

Repro Steps

On Windows, set display scaling higher than 100%. Run qemu in WSL2 with a guest GUI that captures mouse input. Click into the qemu window to capture the mouse, then move the cursor. The movement will not track the host cursor.

For example, you can use X11 in the Debian 0.93 image from the QEMU Advent Calendar. Extract the downloaded tarball, and boot up the image in qemu using the provided run.sh script. A qemu window will appear, then boot Debian. Log in as root, then run startx to run X11.

Expected Behavior

The guest mouse cursor should track the host mouse cursor.

Actual Behavior

Two mouse cursors appear, and the guest mouse cursor's movement is accelerated by the scaling factor.

Diagnostic Logs

No response

jblang avatar Dec 01 '22 19:12 jblang