mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-26 16:46:28 +00:00
[client] cosmetics
This commit is contained in:
parent
54e8cce33c
commit
de0b54ae70
@ -804,14 +804,15 @@ int run()
|
|||||||
|
|
||||||
char* XDG_SESSION_TYPE = getenv("XDG_SESSION_TYPE");
|
char* XDG_SESSION_TYPE = getenv("XDG_SESSION_TYPE");
|
||||||
|
|
||||||
if (XDG_SESSION_TYPE == NULL) {
|
if (XDG_SESSION_TYPE == NULL)
|
||||||
XDG_SESSION_TYPE = "unspecified";
|
XDG_SESSION_TYPE = "unspecified";
|
||||||
}
|
|
||||||
|
|
||||||
if (strcmp(XDG_SESSION_TYPE, "wayland") == 0) {
|
if (strcmp(XDG_SESSION_TYPE, "wayland") == 0)
|
||||||
|
{
|
||||||
DEBUG_INFO("Wayland detected");
|
DEBUG_INFO("Wayland detected");
|
||||||
int err = setenv("SDL_VIDEODRIVER", "wayland", 1);
|
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);
|
DEBUG_ERROR("Unable to set the env variable SDL_VIDEODRIVER: %d", err);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user