no idea if this is a recent development, but stumbled upon the info. you can run wine games on wayland directly, as opposed to the default, running it through Xwayland translation.

what you need to do is clear the DISPLAY variable. I use lutris, so I add it like so:

mangohud reports "wayland", without the line it's "xwayland", so it works. the results for the few games I play are awesome - no resolution issues, no alt-tab glitchings, no launch multiple times before it starts... didn't run any benchmarks as it's already maxed out at 60 fps on Ultra. but so far, very cool!

you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 9 months ago* (last edited 9 months ago)

My understanding is that since WSL version 2 (publicly launched a few years ago I think) it comes with a wayland implementation built-in, and it uses xwayland to run X11 compatible apps. At least if you are using a compatible image.

https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps

https://devblogs.microsoft.com/commandline/wslg-architecture/

  • source
  • parent