Wayland + Gnome + Nvidia + Borderless = glitches
Affected version
Arch Linux x86_64 (6.4.4-arch1-1) mutter 44.3 Wayland Nvidia
Bug summary
Native and proton games glitch when in borderless window mode.
Steps to reproduce
Have any game window run in borderless mode (and not window fullscreen mode).
What happened
Window content glitches and it shouldn't.
Relevant logs, screenshots, screencasts etc.
- Glitches appear only in borderless mode.
- Windowed or window fullscreen mode is unaffected.
- Glitches won't appear on screenshots.
This is photo of the glitch: https://imgur.com/a/FkCsa5Y
I have observed same issue with Hidamari wallpapers. I'm not sure why, but Hidamari switches to borderless-ish mode, making top bar not visible by default.
After that happens it glitches just like borderless windows I have mentioned above (the glitch pattern is also the same).
Perhaps this may or may not hint at something.
Of course, I don't know if mutter is responsible directly (might be an Nvidia driver), however since it happens only in specific window mode, I assume this might be related to display server/compositor.