[client] app: always call the default eventFilter for unhandled events

This change allows much of the SDL code to be moved into the SDL
displayserver implementation.
This commit is contained in:
Geoffrey McRae 2021-01-17 13:33:42 +11:00
parent 076ed1180f
commit 89a6686349

View File

@ -1307,6 +1307,11 @@ int eventFilter(void * userdata, SDL_Event * event)
if (g_state.ds->eventFilter(event))
return 0;
// always include the default handler (SDL) for any unhandled events
if (g_state.ds != LG_DisplayServers[0])
if (LG_DisplayServers[0]->eventFilter(event))
return 0;
if (event->type == e_SDLEvent)
{
switch(event->user.code)