mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-11 06:43:56 +00:00
[client] don't override SDL_VIDEODRIVER if it is already set
This commit is contained in:
parent
607539a2af
commit
2def6346e6
2 changed files with 9 additions and 6 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
B1-rc5-10-g75de895b62+1
|
B1-rc6-0-g607539a2af+1
|
|
@ -1014,6 +1014,8 @@ int run()
|
||||||
if (strcmp(XDG_SESSION_TYPE, "wayland") == 0)
|
if (strcmp(XDG_SESSION_TYPE, "wayland") == 0)
|
||||||
{
|
{
|
||||||
DEBUG_INFO("Wayland detected");
|
DEBUG_INFO("Wayland detected");
|
||||||
|
if (getenv("SDL_VIDEO_DRIVER") == NULL)
|
||||||
|
{
|
||||||
int err = setenv("SDL_VIDEODRIVER", "wayland", 1);
|
int err = setenv("SDL_VIDEODRIVER", "wayland", 1);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
{
|
{
|
||||||
|
@ -1022,6 +1024,7 @@ int run()
|
||||||
}
|
}
|
||||||
DEBUG_INFO("SDL_VIDEODRIVER has been set to wayland");
|
DEBUG_INFO("SDL_VIDEODRIVER has been set to wayland");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// warn about using FPS display until we can fix the font rendering to prevent lag spikes
|
// warn about using FPS display until we can fix the font rendering to prevent lag spikes
|
||||||
if (params.showFPS)
|
if (params.showFPS)
|
||||||
|
|
Loading…
Reference in a new issue