mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Make it clear that the string comparison isn't a boolean check
This commit is contained in:
@@ -131,7 +131,7 @@ static SDL_VideoDevice *Wayland_CreateDevice(void)
|
|||||||
/* Are we trying to connect to or are currently in a Wayland session? */
|
/* Are we trying to connect to or are currently in a Wayland session? */
|
||||||
if (!SDL_getenv("WAYLAND_DISPLAY")) {
|
if (!SDL_getenv("WAYLAND_DISPLAY")) {
|
||||||
const char *session = SDL_getenv("XDG_SESSION_TYPE");
|
const char *session = SDL_getenv("XDG_SESSION_TYPE");
|
||||||
if (session && SDL_strcasecmp(session, "wayland")) {
|
if (session && SDL_strcasecmp(session, "wayland") != 0) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user