Skip to content

Commit

Permalink
[client,sdl] fix ubuntu 20.04 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Armin Novak authored and akallabeth committed Dec 20, 2023
1 parent e1de32f commit caac867
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/SDL/dialogs/sdl_connection_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
{
Expand Down

0 comments on commit caac867

Please sign in to comment.