godotengine / godot

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

InputEventMouseMotion does not work until the window is switched, dragged or resized #57770

Closed jmdejong closed 2 years ago

jmdejong commented 2 years ago

Godot version

4.0 alpha1

System information

Recently updated archlinux, xfce4 desktop, Vulkan API 1.2.203, AMD RADV OLAND Also tested on cinnamon desktop

Issue description

When I start a new scene and move the mouse around in the scene I do not get InputEventMouseMotion events. Clicking or keypresses are registered, but do not change anything.

If I select a different window and then alt-tab back to the game window then I do get InputEventMouseMotion events. Dragging or resizing the window fixes the problem too.

Steps to reproduce

Minimal reproduction project

https://github.com/jmdejong/godot4_alpha_InputEventMouseMotion

Sauermann commented 2 years ago

This has been solved in #56548.