From de0b54ae702be97a96914143d2143754f0305bb4 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Fri, 22 Feb 2019 22:40:57 +1100 Subject: [PATCH] [client] cosmetics --- client/main.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/main.c b/client/main.c index d20105f1..31f4c329 100644 --- a/client/main.c +++ b/client/main.c @@ -804,14 +804,15 @@ int run() char* XDG_SESSION_TYPE = getenv("XDG_SESSION_TYPE"); - if (XDG_SESSION_TYPE == NULL) { + if (XDG_SESSION_TYPE == NULL) XDG_SESSION_TYPE = "unspecified"; - } - if (strcmp(XDG_SESSION_TYPE, "wayland") == 0) { + if (strcmp(XDG_SESSION_TYPE, "wayland") == 0) + { DEBUG_INFO("Wayland detected"); int err = setenv("SDL_VIDEODRIVER", "wayland", 1); - if (err < 0) { + if (err < 0) + { DEBUG_ERROR("Unable to set the env variable SDL_VIDEODRIVER: %d", err); return -1; }