wslg: Mouse locking/hiding not working in OpenGL app

Environment

Windows build number: 10.0.22000.71
Your Distribution version: 20.04
Your WSLg version: 1.0.24

Steps to reproduce

Download and install https://jenkins.thebrokenrail.com/job/minecraft-pi-reborn/job/master/97/artifact/out/minecraft-pi-reborn-client_2.1.6~buster_amd64.deb. For reference, I’m playing Minecraft Pi Edition: Reborn by MCPI Revival.

WSL logs:

  • Attach WSLg logs from /mnt/wslg

You can access the wslg logs using explorer at: \\wsl$\<Distro-Name>\mnt\wslg (e.g.: \\wsl$\Ubuntu-20.04\mnt\wslg)

pulseaudio.log weston.log (versions log was empty)

Expected behavior

The mouse should have been hidden, and it should have also locked in place to the center of the window image

Actual behavior

The mouse isn’t hidden and it also can move freely around when the game is playing without being locked in place. This doesn’t happen on normal linux. The mouse moving freely also breaks the player view.

https://user-images.githubusercontent.com/44128563/126565767-dc06deaf-b209-43cd-a3e7-6de53a3fc6fb.mp4

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 5
  • Comments: 15

Most upvoted comments

this happen with qemu too.