Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/work_items/3949 (cherry picked from commit 327f000532)
327f000532