mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-01-10 23:07:04 +00:00
[client] wayland: fix early return preventing signal being set
This commit is contained in:
parent
9f74bb785e
commit
ca5fc80af5
@ -257,16 +257,16 @@ static const struct wl_seat_listener seatListener = {
|
|||||||
|
|
||||||
static bool waylandEarlyInit(void)
|
static bool waylandEarlyInit(void)
|
||||||
{
|
{
|
||||||
if (getenv("SDL_VIDEODRIVER") != NULL)
|
if (!getenv("SDL_VIDEODRIVER"))
|
||||||
return true;
|
|
||||||
|
|
||||||
int err = setenv("SDL_VIDEODRIVER", "wayland", 1);
|
|
||||||
if (err < 0)
|
|
||||||
{
|
{
|
||||||
DEBUG_ERROR("Unable to set the env variable SDL_VIDEODRIVER: %d", err);
|
int err = setenv("SDL_VIDEODRIVER", "wayland", 1);
|
||||||
return false;
|
if (err < 0)
|
||||||
|
{
|
||||||
|
DEBUG_ERROR("Unable to set the env variable SDL_VIDEODRIVER: %d", err);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
DEBUG_INFO("SDL_VIDEODRIVER has been set to wayland");
|
||||||
}
|
}
|
||||||
DEBUG_INFO("SDL_VIDEODRIVER has been set to wayland");
|
|
||||||
|
|
||||||
// Request to receive EPIPE instead of SIGPIPE when one end of a pipe
|
// Request to receive EPIPE instead of SIGPIPE when one end of a pipe
|
||||||
// disconnects while a write is pending. This is useful to the Wayland
|
// disconnects while a write is pending. This is useful to the Wayland
|
||||||
|
Loading…
Reference in New Issue
Block a user