Point2i DisplayServerWayland::mouse_get_position() const {
MutexLock mutex_lock(wayland_thread.mutex);
// We can't properly implement this method by design.
// This is the best we can do unfortunately.
return Input::get_singleton()->get_mouse_position();
return Point2i(); // <- unreachable
}
Steps to reproduce
see above
Minimal reproduction project (MRP)
see above
Edit by the production team: added syntax highlighting and added the link to the file.
Tested versions
4.3 src Linux
System information
Linux
Issue description
File:
https://github.com/godotengine/godot/blob/fd4c29a189e53a1e085df5b9b9a05cac9351b3ef/platform/linuxbsd/wayland/display_server_wayland.cpp#L374-L382
Code:
Steps to reproduce
see above
Minimal reproduction project (MRP)
see above
Edit by the production team: added syntax highlighting and added the link to the file.