First post, by kjliew
Since Wayland is now taking shape in the latest Linux distro with GNOME desktop, just make sure this is being acknowledged. For those who uses open-sourced drivers (Intel, AMDGPU, Nouveau) Wayland will likely be the default X session. So far I have found that arrow keys are completely screwed up on Wayland session. Switching to X11 session will have the issue resolved.
NVIDIA propriety blobs will always use X11 session as of now. I am not following the EGLStream vs GBM in-fighting, so things could have changed on how NVIDIA propriety blobs would eventually support Wayland.
QEMU built with SDL1.2 exhibits exactly the same issue, so this is not specific to DOSBox. QEMU dumped SDL1.2 in the latest 4.0.0 release.