godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.99k stars 20.18k forks source link

mouse still moving despite captured on wayland, only hidden within window frame #91577

Open foolmetuljakut opened 4 months ago

foolmetuljakut commented 4 months ago

Tested versions

Godot version: v4.2.2.stable.fedora [15073afe3]

System information

Godot version: v4.2.2.stable.fedora [15073afe3] OS: Fedora Linux 40 (Workstation Edition)

Issue description

Observation:

when using

func _ready():
    Input.mouse_mode = Input.MOUSE_MODE_CAPTURED

the mouse hides as expected but can be moved outside the window until it hits the screen boundary.

SystemInformation:

Godot version: v4.2.2.stable.fedora [15073afe3] OS: Fedora Linux 40 (Workstation Edition)

echo $XDG_SESSION_TYPE
wayland

Steps to reproduce

hit play, move mouse to look around

Minimal reproduction project (MRP)

fpsController.tar.gz

DillBee commented 3 weeks ago

I can confirm this is still true on the 4.3 release.