mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-25 13:31:41 +00:00
Fix matching with colon-separated XDG_CURRENT_DESKTOP values
This commit is contained in:
1 parent
32c6ab6eee
commit
7927da33d6
1 file changed
+1
-1
+1
-1
@@ -749,7 +749,7 @@ int main(int argc, char *argv[])
|
|||||||
// NB: We do not force SDL_VIDEO_WAYLAND_MODE_SCALING to "stretch" on KDE,
|
// 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
|
// because SDL 3.6 has a workaround for KDE and switches the default to
|
||||||
// "aspect" for all desktops.
|
// "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");
|
SDL_SetHint("SDL_VIDEO_WAYLAND_MODE_SCALING", "aspect");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user