Fix matching with colon-separated XDG_CURRENT_DESKTOP values

This commit is contained in:
Cameron Gutman
2026-10-03 13:11:12 -05:00
parent 32c6ab6eee
commit 7927da33d6
+1 -1
View File
@@ -749,7 +749,7 @@ int main(int argc, char *argv[])
// NB: We do not force SDL_VIDEO_WAYLAND_MODE_SCALING to "stretch" on KDE,
// because SDL 3.6 has a workaround for KDE and switches the default to
// "aspect" for all desktops.
if (qgetenv("XDG_CURRENT_DESKTOP") != "KDE") {
if (!qgetenv("XDG_CURRENT_DESKTOP").contains("KDE")) {
SDL_SetHint("SDL_VIDEO_WAYLAND_MODE_SCALING", "aspect");
}