From caac867c799bd8ce5980134335b052fe5b50c9fd Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Fri, 15 Dec 2023 19:59:06 +0100 Subject: [PATCH] [client,sdl] fix ubuntu 20.04 compatibility --- client/SDL/dialogs/sdl_connection_dialog.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/SDL/dialogs/sdl_connection_dialog.cpp b/client/SDL/dialogs/sdl_connection_dialog.cpp index 0be787eff..318f5af24 100644 --- a/client/SDL/dialogs/sdl_connection_dialog.cpp +++ b/client/SDL/dialogs/sdl_connection_dialog.cpp @@ -227,7 +227,11 @@ bool SDLConnectionDialog::handle(const SDL_Event& event) { auto ev = reinterpret_cast(event); update(_renderer); +#if SDL_VERSION_ATLEAST(2, 0, 18) return windowID == ev.windowID; +#else + return false; +#endif } case SDL_WINDOWEVENT: {