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: {