[client] x11: fix cleanup if XIQueryVersion fails

This commit is contained in:
Geoffrey McRae 2023-09-11 23:41:52 +10:00
parent 193977895b
commit 8dba4b6c0b

View File

@ -476,7 +476,7 @@ static bool x11Init(const LG_DSInitParams params)
if (XIQueryVersion(x11.display, &major, &minor) != Success)
{
DEBUG_ERROR("Failed to query the XInput version");
return false;
goto fail_window;
}
DEBUG_INFO("X11 XInput %d.%d in use", major, minor);