Would anyone know how to solve this mouse stutter issue on Linux? When I press the side buttons at the same time as keyboard input, it causes the graphics rendering to stall. It’s not just while gaming, it happens no matter what app is running. This is on elementary OS using Pantheon.
The issue is apparently not present on Wayland, but then my game performance tanks significantly. Pantheon has proper performance, but the mouse + keyboard stutter. Anyone know a fix?
I’ve seen posts about this online, but they were focused on gnome and mutter. I have an Nvidia GPU.


Xwayland is an X11 server that runs under Wayland. It acts as a compatibility layer so that programs that are native X11 programs that don’t support Wayland can still be run. The system largely determines when to use Xwayland; it’s not generally something the user does.
Wine, and it’s derivative for gaming Proton are normally run as X11 applications. There is a Wayland driver for wine - it’s not perfect, and not widely used by default yet, but it does generally work. Still, at the moment usually wine and Proton are by default running with X11 (and so xwayland) even on Wayland.
When there are issues under Wayland it’s generally to do with Nvidia drivers rather than xwayland or x11. But the wine Wayland.drv can still give a performance boost. It can also causes its own issues so is best used on a case by case basis.
Some people do set wine or proton to use the Wayland drivers when using Wayland; for example with Steam and Proton-GE just add PROTON_ENABLE_WAYLAND=1 into the games launch options and it’ll run directly under Wayland.
It may be a way for OP to switch to Wayland and see if they can get good gaming performance in wine/Proton. However it’s more likely the Nvidia drivers are the cause of the performance issues under Wayland.
I’ll keep this in mind. Admittedly I didn’t yet test a Steam game for performance under Wayland, only a GoG game using Bottles to run the GoG Galaxy client (the game crashes using Proton; I have to set Bottles to use regular Wine). At the time I was more focused on the input stutter issue before I ran into a Wayland performance bottleneck.
I have read that Nvidia drivers are a problem under Wayland. I’ll have to do more testing to confirm what happens on my system.