1
0
Fork 0
mirror of https://github.com/Ryujinx/SDL.git synced 2025-01-12 05:55:35 +00:00

linux: Fix ibus support on Wayland/XWayland

This commit is contained in:
Ethan Lee 2021-03-28 14:58:41 -04:00 committed by Sam Lantinga
parent 1cd97e2695
commit 5ceb674426

View file

@ -257,7 +257,12 @@ IBus_GetDBusAddressFilename(void)
}
if (!*host) {
host = "unix";
const char *session = SDL_getenv("XDG_SESSION_TYPE");
if (session != NULL && SDL_strcmp(session, "wayland") == 0) {
host = "unix-wayland";
} else {
host = "unix";
}
}
SDL_memset(config_dir, 0, sizeof(config_dir));