From 11660029174f1874d5fff76026df4f5d00471b6c Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 19 Jan 2022 17:45:43 +0200 Subject: Event processing workaround (2.0.18+) This is most likely not needed for older SDL versions. IssueID #436 IssueID #438 --- src/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/app.c b/src/app.c index 4045610e..30221582 100644 --- a/src/app.c +++ b/src/app.c @@ -1268,7 +1268,7 @@ static iBool nextEvent_App_(iApp *d, enum iAppEventMode eventMode, SDL_Event *ev /* SDL regression circa 2.0.18? SDL_PollEvent() doesn't always return events posted immediately beforehand. Waiting with a very short timeout seems to work better. */ -#if defined (iPlatformLinux) +#if defined (iPlatformLinux) && SDL_VERSION_ATLEAST(2, 0, 18) return SDL_WaitEventTimeout(event, 1); #else return SDL_PollEvent(event); -- cgit v1.2.3