simply do not support wslg

This commit is contained in:
IoIxD 2026-09-26 17:09:21 -07:00
commit 5d0606c9a2

View file

@ -2010,11 +2010,16 @@ static int MwLLWaylandCallInitImpl(void) {
loadWayland |= (getenv("WAYLAND_DISPLAY") != NULL); loadWayland |= (getenv("WAYLAND_DISPLAY") != NULL);
} }
#ifdef MW_OPENGL if((getenv("WSLENV") || getenv("WSL_DISTRO_NAME")) && (!getenv("WESTON_CONFIG_FILE") || !getenv("MW_WSL_WAYLAND_FORCEFULLY_ENABLE"))) {
if(getenv("WSLENV") || getenv("WSL_DISTRO_NAME")) { printf(
// loadWayland = 0; "!!!!! Milsko's Wayland backend has known issues under Microsoft's WSLg !!!!!\n"
"!!!!! (the default method of running GUI apps) that we're not fixing !!!!!\n"
"!!!!! If you want to try the Wayland backend, please either: !!!!!\n"
"!!!!! a.) actually install Weston and run it manually !!!!!\n"
"!!!!! b.) set the env variable to MW_WSL_WAYLAND_FORCEFULLY_ENABLE !!!!!\n");
loadWayland = 0;
} }
#endif
if(loadWayland) { if(loadWayland) {
if(wayland_load_funcs()) { if(wayland_load_funcs()) {