Fixing the selection and scrolling on Linux.