[client,sdl] fix ubuntu 20.04 compatibility

This commit is contained in:
Armin Novak 2023-12-15 19:59:06 +01:00 committed by akallabeth
parent e1de32f9ab
commit caac867c79

View File

@ -227,7 +227,11 @@ bool SDLConnectionDialog::handle(const SDL_Event& event)
{
auto ev = reinterpret_cast<const SDL_TouchFingerEvent&>(event);
update(_renderer);
#if SDL_VERSION_ATLEAST(2, 0, 18)
return windowID == ev.windowID;
#else
return false;
#endif
}
case SDL_WINDOWEVENT:
{