Input.warp_mouse() completely nonfunctional

Godot Version

v4.4.dev6.official [1f47e4c4e]

Question

Using the function Input.warp_mouse() sometimes doesn’t work, and nothing happens.
Minimal Reproduction: https://github.com/MADOK1/godot-warp-mouse-minimal-reproduction

EDIT: I forgot to specify I am on Arch Linux with KDE Plasma Desktop on Wayland

Your Github Link to the minimal reproduction project seems to be missing.

I use warp_mouse in order to move the mouse via gamepad and didn’t experience problems (Windows 10) so far:

		var mp := get_window().get_mouse_position()
		get_window().warp_mouse(mp + _cursor_move * 10.0)

Sorry, just added the link

Thanks, I’ll try the different function.

Nope, same result. I don’t know what the problem would be because the mouse moves sometimes but resets to the center of the screen on others (because Input.MOUSE_MODE_CAPTURED resets the position to the center of the screen.)

I have tested your MRP and it works for me on Debian X11 Xfce.
So this could be a wayland-related bug.
May I ask you to create a bug report on our bug-tracker GitHub · Where software is built

Thank you. It turns out the issue may have been that the version manager I had been using (Godots) had been forcing it to run under X11 and that may have prevented it from moving the mouse through some permission issues.