mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-12-26 07:23:40 +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");
|
||||
|
||||
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user