(cherry picked from commit 5bd7f93c16) Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1433>
5bd7f93c16