https://bugs.winehq.org/show_bug.cgi?id=58032
mata sutupud@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |sutupud@yahoo.com
--- Comment #1 from mata sutupud@yahoo.com --- Unsetting the DISPLAY variable is just an easy way to force the fallback for the graphics driver to be used that's configured in the registry via:
HKCU\Software\Wine\Drivers\Graphics = "x11,wayland"
The way to change the preference order would be to change it to "wayland,x11".
It's really a common theme that applications need to be told whether to target Wayland or XWayland, since only going by XDG_SESSION_TYPE is not really enough, and so lots of stuff needs further tweaking, for example this is what I've accumulated in my .profile:
export QT_QPA_PLATFORM="wayland;xcb" export GDK_BACKEND="wayland,x11" export SDL_VIDEODRIVER="wayland,x11" export MOZ_ENABLE_WAYLAND=1 export ELECTRON_OZONE_PLATFORM_HINT=auto export GVIM_ENABLE_WAYLAND=1
And some of them may actually break wine applicaitons if set, since for example a windows SDL application running in wine doesn't know what to do with wayland. Im sure there are more I've just not come across.